-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Console and Syslog log formats are different #9872
Comments
The messages being one big chunk of text might be a bug (please see PR referenced below). This is because zigbee2mqtt is not directly responsible for the syslog messages format. As far as I've been able to quickly check, the formatting is done by #glossy (used by #winston-syslog). z2m just passed message content. This could be changed by providing customProducer to glossy. |
"Interesting intensifies" I've searched a bit after that and found this: winstonjs/winston-syslog#150 |
I tried to switch to UDP - and yes, it solves newline issue (I do not have
Funny thing, however, is that with UDP configured it shows timestamp in different format and UTC only (local time is 09:19:27 i this case). That's definitely better, but raises another issue with the timestamp :) |
Interesting point is that timestamp in Console output is in local timezone:
while the same entries in Syslog are in UTC:
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days |
When logging to both Console and Syslog I'm getting completely different format of log entries:
Example:
Zigbee2MQTT:info 2021-11-28 15:29:56: Currently 8 devices are joined:
in Console entry2021-11-28T12:29:56.860+03:00 192.168.0.2 zigbee2mqtt - - - Currently 8 devices are joined:<134>1
without new line in Syslog entry for most of entries.As a result Syslog becomes completely unreadable, while Console output is clear.
My logging settings are as following:
Another point is that
log_level:
parameter works fine for Console output, however Syslog always logs inlog_level: debug
mode.My rsyslog.service is running on 192.168.0.6 and is serving several other logs without any problem.
And yes, I am in timezone UTC+3... but don't see any need to remind me in every log entry about that.
Thanks in advance.
The text was updated successfully, but these errors were encountered: