[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] syslogd: let log-message timestamps include the year
From:       Joshua Judson Rosen <jrosen () harvestai ! com>
Date:       2014-05-20 17:58:09
Message-ID: 537B97B1.3030706 () harvestai ! com
[Download RAW message or body]

On 2014-05-20 12:59, walter harms wrote:
>
> Am 20.05.2014 18:35, schrieb Joshua Judson Rosen:
>> On 2014-05-20 03:23, walter harms wrote:
>>> just, an idea
>>> is it possible to make it more generic e.g. providing format string like
>>> "%Y-%m-%d %H:%M:%S" ? That would be more flexible.
>>
>> Sure. I guess that requires adding a command-line option to specify it
>> at runtime; e.g.: "-t"? And perhaps some logic to validate the formatters
>> in the user-supplied string, and handle any invalid/unsupported ones
>> accordingly?
>>
>> Another alternative would be, I suppose, to extend the syntax of
>> syslog.conf--
>> though adding a command-line option seems somewhat more straightforward.
>
> actualy i was more thinking of a #define
> #define TIMEFMT "%a %b %d %H:%M:%S %Y"
> but a cmd line option would be nice also :)
>
> I was looking around for some common options is seems that apple uses -T
> that takes some wired format strings others seem all different.

Hm. Apple's "syslogd -T" doesn't seem to be documented in the man page that I 
can find:

	https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man8/syslogd.8.html


-- 
"'tis an ill wind that blows no minds."
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic