[sheepdog] [PATCH v2 1/3] logger: format in logger process
Hitoshi Mitake
mitake.hitoshi at gmail.com
Tue Jan 29 12:43:41 CET 2013
At Tue, 29 Jan 2013 17:47:23 +0800,
Liu Yuan wrote:
>
> On 01/29/2013 05:30 PM, Hitoshi Mitake wrote:
> > In addition, this patch let logger obtain timestamp with
> > gettimeofday() instead of time(). The purpose of this change is more
> > accurate timestamp. Because many logs can be generated in one second,
> > second is not suitable unit of timestamp for collecting multiple log
> > files and sorting them with timestamp.
>
> But output is till using second as its unit. Can we get finer uint such
> as 17:43:00:xxx?
>
This is my intention. The microsecond unit only appears in JSON
formatted log. I thought that the part of microseconds is not required
by human. HH:MM:SS styled timestamp would be enough for them.
Thanks,
Hitoshi
More information about the sheepdog
mailing list