Hi Inosh, We have to handle this when the logging happens. Than means when we debug, we may need a history of logs. So its better we do a versioning of log files (ex: file per day). Here, the battery drain happens when try to write to that big file. So actually when we switch off the debug mode, this won't happen. Anyway I suggest we should do that log file versioning thins so that the file won't get large in size.
Thanks On Mon, May 5, 2014 at 2:06 PM, Inosh Perera <ino...@wso2.com> wrote: > Hi All, > I'm working on performance optimization of our Android client app (MDM > agent), since some customer's have reported it consumes more than 10% > battery sometimes. Reason seems to be, our app has debug mode enabled, so > over time, the log becomes too big. > > Thanks, > Inosh > > -- > Inosh Perera > Software Engineer, WSO2 Inc. > Tel: 0785293686 > -- Kasun Dananjaya Delgolla Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware Tel: +94 11 214 5345 Fax: +94 11 2145300 Mob: + 94 777 997 850 Blog: http://kddcodingparadise.blogspot.com Linkedin: *http://lk.linkedin.com/in/kasundananjaya <http://lk.linkedin.com/in/kasundananjaya>*
_______________________________________________ Architecture mailing list Architecture@wso2.org https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture