[PATCH] syslogd: let log-message timestamps include the year

Joshua Judson Rosen jrosen at harvestai.com
Tue May 20 17:58:09 UTC 2014


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


More information about the busybox mailing list