Re: how to log date/time in daemon mode?

Hans Carlson <[email protected]>
Newsgroups gmane.mail.fetchmail.user
Message-ID <alpine.LFD.2.02.1810010946110.32295@xippy>
On Sun, 30 Sep 2018, grarpamp wrote:

>> This makes the log entries look like this:
>>
>>    fetchmail [2018/09/29 17:04:41]: 2 messages for ...
>>    fetchmail [2018/09/29 17:04:42]: reading message ...
>>
>> Here's the patch I used for 6.3.26...
>
> Try reading and adopting a valid iso8601 standard format for timestamps 
> instead of the above which are nonconformant and ambiguous in multiple 
> ways.

Feel free to change the format however you like.  This patch was a "quick
fix" for something I found annoying with the fetchmail logs... nothing
more than that.  I saw someone else with a similar need and provided an 
option.

I understand your point and it's a very good one, but I intentionally 
selected that format because it's what I want.  It gives me exactly the 
information I need and no more.  It is not ambiguous (to ME, for MY 
purposes) in any way.

Different people have different needs... so I'll amend my original 
suggestion a bit...

Someone a bit more enterprising than me could probably submit a patch with 
some kind of config file option (eg. log_timestamp) to do something 
similar.  It would be wise to also add a config file option that specified 
the format for the timestamp, with the default timestamp something more 
universally acceptable and standard than the format I used.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.