Skip to content
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

feat: Unified logging across z2m/zh/zhc #21984

Merged
merged 3 commits into from
Apr 2, 2024

Conversation

Nerivec
Copy link
Collaborator

@Nerivec Nerivec commented Mar 28, 2024

One logger and one level to control all logging for zigbee2mqtt, zigbee-herdsman and zigbee-herdsman-converters.

  • Z2M sets loggers for zh/zhc on init.
  • Change function names to match syslog levels.
    • Deprecate warn in favor of warning.
  • Improve logging consistency across transports (console, file...).
  • Print stack when logging Error objects.
  • Change default log file to have .log extension for automatic language mode selection in vscode (& others).
  • Support namespacing. Defaults to zigbee2mqtt.
    • logger.xyz('message', 'namespace:goes:here');

Goes with: Koenkk/zigbee-herdsman#989

@Koenkk Koenkk merged commit 73566df into Koenkk:dev Apr 2, 2024
1 of 8 checks passed
@Nerivec Nerivec deleted the feat-unified-logging branch June 19, 2024 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants