I just noticed your date/time pattern:  %d{%j %H:%M:%S.%q} %c %m  You
might want to change to  %D{%Y-%m-%d %H:%M:%S.%q %Z} %-5p [%c/%i.%t]
%m (or at least capitalize the %D as I think the content in {} is a
description of the output you want from %D).  You can also add a %Z in
the format message to show a timezone, I believe.

> To me it looks as if the logged time is one hour off my local timezone
> (CET). It would be great to fix that.

Isn't CET currently 1 hour ahead of UTC?  So, if your Kea server is
logging one hour behind, then it must be logging in UTC.  I didn't see
anything in the documentation to indicate it would or wouldn't respect
local zoneinfo.  I assume your server itself is configured as CET?

Looking at this bit in the Logging instructions:

%D{%Y-%m-%d %H:%M:%S.%q} ā€œ%Dā€ is the local date and time when the log
message is generated, while everything between the curly braces, ā€œ{}ā€,
are date and time components. From the example log above this
produces: 2019-08-05 14:27:45.871

It seems like %D uses the local date and time which I take to mean
that it will use your zoneinfo configured on the server.
-- 
ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.

To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.

Kea-users mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/kea-users

Reply via email to