In recent years, mobile sensing data are widely used for analyzing human's activities, usage patterns, emotions, health conditions and social relationships. In order to understand and analyze human's behaviors, several frameworks have been proposed to collect mobile sensing data. In this paper we extend previous works and design StarLog, which is a distributed and energy-configurable framework for both mobile data collecting and analyzing. It collects fine-grained sensing data of five categories, reflecting user's locations, activities, interactions with smart phone, social contacts and device setting habits. Data analyses are developed on both client side and server side to understand individual as well as crowd behaviors. Besides, StarLog proposes optional modes for collecting sensory data from GPS, accelerometer, gyroscope and magnetometer to make it configurable for battery concern.