[Sugar-devel] Best time format for logging?

Walter Bender walter.bender at gmail.com
Fri Feb 28 09:01:20 EST 2014


I think the seconds format is more useful for the purposes of
subsequent analysis.

-walter

On Fri, Feb 28, 2014 at 8:48 AM, Manuel Quiñones <manuq at laptop.org> wrote:
> Hi, this is a general question but related with Sugar.
>
> I have made changes in olpc-utils to log the session duration and kind
> (Sugar or GNOME).  This will be used for statistics.
> https://github.com/manuq/olpc-utils/compare/boot-stats?expand=1
>
> My log format is now:
>
>     START_SUGAR 27/Feb/2014:17:33:17
>     END         27/Feb/2014:17:59:47
>     START_SUGAR 27/Feb/2014:18:00:24
>     END         27/Feb/2014:18:44:54
>     START_GNOME 27/Feb/2014:18:45:30
>     END         27/Feb/2014:18:50:26
>     START SUGAR 27/Feb/2014:18:51:03
>     END         27/Feb/2014:18:57:58
>
> But I see that in many places Linux logs times as date +%s, which
> outputs seconds like: 1393595186 .
>
> What is best?
>
> --
> .. manuq ..
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org


More information about the Sugar-devel mailing list