supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* ISO 8601 format (time)
@ 2006-06-12  9:55 Roy Lanek
  2006-07-04 14:54 ` Gerrit Pape
  0 siblings, 1 reply; 2+ messages in thread
From: Roy Lanek @ 2006-06-12  9:55 UTC (permalink / raw)


What about adding a ...

  -ti

    timestamp. Prefix each selected line with a human
    readable, sortable, ISO 8601 compliant timestamp of
    the form YYYY-MM-DDTHH:MM:SS.xxxxx when writing to log
    or to standard error.

in the options of svlogd (runit/socklog)?

Notice the difference: -tt uses '_', -ti 'T' ... example:

    2006-05-11_02:45:09.25607 vs. 2006-05-11T02:45:09.25607

-tt is fine, but not *standard* (ISO); on the other hand,
it can't be changed *a posteriori* that easily/quickly.

Cheers,

/Roy Lanek

-- 
########################                 seperti pinang dibelah dua              
##### . slackware ######                    like a halved pinang                 
##### +-----linux ######  [means: two things that are quite different!, because  
########################   you can never halve a pinang tree with an axe neatly] 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ISO 8601 format (time)
  2006-06-12  9:55 ISO 8601 format (time) Roy Lanek
@ 2006-07-04 14:54 ` Gerrit Pape
  0 siblings, 0 replies; 2+ messages in thread
From: Gerrit Pape @ 2006-07-04 14:54 UTC (permalink / raw)


On Mon, Jun 12, 2006 at 04:55:05PM +0700, Roy Lanek wrote:
> What about adding a ...
> 
>   -ti
> 
>     timestamp. Prefix each selected line with a human
>     readable, sortable, ISO 8601 compliant timestamp of
>     the form YYYY-MM-DDTHH:MM:SS.xxxxx when writing to log
>     or to standard error.
> 
> in the options of svlogd (runit/socklog)?
> 
> Notice the difference: -tt uses '_', -ti 'T' ... example:
> 
>     2006-05-11_02:45:09.25607 vs. 2006-05-11T02:45:09.25607
> 
> -tt is fine, but not *standard* (ISO); on the other hand,
> it can't be changed *a posteriori* that easily/quickly.

This is the 3rd request of this kind IIRC, so maybe it's not that
a bad idea.  Personally I find the underscore much better to read.

Regards, Gerrit.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-04 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-12  9:55 ISO 8601 format (time) Roy Lanek
2006-07-04 14:54 ` Gerrit Pape

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).