You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"WARN" is deprecated in favour of "WARNING." It's not a problem because you can remap the status. However, I've seen some libraries also encourage using the whole word "WARNING."
I guess that change would be a breaking change even if you only change the Display implementation:
It potentially improves the user experience when parsing the logs generated by the tracing crate by providing a smooth integration with other services that parse logs.
I've asked ChatGPT which languages/packages are recommending this change:
The deprecation of "WARN" in favor of "WARNING" is typically seen in logging frameworks and libraries rather than in programming languages themselves. Some examples include:
Java Logging (java.util.logging): In Java's built-in logging framework, using "WARN" has been discouraged in favor of "WARNING."
Log4j: Log4j, a popular logging library for Java, has historically used "WARN" as a logging level. However, it's recommended to use "WARN" as an alias for "WARNING" for consistency.
Python logging module: Python's logging module uses "WARNING" instead of "WARN" to represent log levels indicating potential issues or warnings.
Syslog: As you mentioned, in the syslog standard, "WARN" has been deprecated in favor of "WARNING."
In general, this deprecation is part of a broader trend towards clearer and more consistent logging practices, making log messages easier to understand and analyze across different systems and programming languages.
Proposal
Allow users to remap/overwrite these keywords. And keep the current ones as defaults.
Alternatives
I guess you could just change it in the next big release if there is consensus. To be honest, I don't see "WARN" as a big problem. Datadog is just one provider, and others may keep using it.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Feature Request
I was setting up Datadog for a project I'm working on, and I realized log lines containing "WARN" were categorised as "INFO".
Datadog uses the severity levels described here:
https://en.wikipedia.org/wiki/Syslog#Severity_level
"WARN" is deprecated in favour of "WARNING." It's not a problem because you can remap the status. However, I've seen some libraries also encourage using the whole word "WARNING."
I guess that change would be a breaking change even if you only change the Display implementation:
Crates
tracing-core
Motivation
It potentially improves the user experience when parsing the logs generated by the tracing crate by providing a smooth integration with other services that parse logs.
I've asked ChatGPT which languages/packages are recommending this change:
Proposal
Allow users to remap/overwrite these keywords. And keep the current ones as defaults.
Alternatives
I guess you could just change it in the next big release if there is consensus. To be honest, I don't see "WARN" as a big problem. Datadog is just one provider, and others may keep using it.
The text was updated successfully, but these errors were encountered: