[Sugar-devel] Best time format for logging?

Manuel Quiñones manuq at laptop.org
Fri Feb 28 08:48:53 EST 2014


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 ..


More information about the Sugar-devel mailing list