[tahoe-dev] collective effort to improve logging

zooko zooko at zooko.com
Mon Sep 17 20:33:32 UTC 2007


On Sep 17, 2007, at 2:13 PM, Brian Warner wrote:

> What would you think about this:?
>
>  2007-09-11 20:02:48 [Client] z23k6ynh: 'connected to qtjkk6cy'

Looks fine to me!

> I'd prefer relatively compact UTC (2007-09-11 20:02:48) to more  
> verbose
> localtime+tz (2007-09-11 20:02:48 -0700).

Great!  I would be satisfied with that, too.

> The DJB approach is tai64 at the start of each line, and use an  
> external tool
> to convert it into whatever you want. While we don't need  
> picosecond or
> exasecond resolution (64bits before the binary point, 32bits after,  
> so it has
> a range of 18e18s, and resolution of 233e-12s), the idea is sound, and
> connects well with my thoughts that we're doing ourselves a  
> disservice by
> limiting our logfiles to human-readable anyways:
>
>  @4000000046eeac0b074a2854 [Client] z23k6ynh: 'connected to qtjkk6cy'
>
> catting the logfile through /usr/bin/tai64nlocal results in:
>
>  2007-09-17 09:32:01.122300500 [Client] z23k6ynh: 'connected to  
> qtjkk6cy'

Well, that's interesting!  I always pay close attention to DJB's  
technical ideas.

However, we're probably not going to need more than -- what --  
microsecond precision?

So the tai64:

>  @4000000046eeac0b074a2854 [Client] z23k6ynh: 'connected to qtjkk6cy'

Could be replaced by a human-readable ISO UTC timestamp, for our  
purposes:

>  2007-09-17 09:32:01.122300 [Client] z23k6ynh: 'connected to qtjkk6cy'

Regards,

Zooko




More information about the tahoe-dev mailing list