Code owners
Assign users and groups as approvers for specific file changes. Learn more.
README.md 2.97 KiB
nexus_semantic_logger
Configures a semantic_logger as required for NexusMods components.
Telemetry
As well as providing a semantic logger, this gem handles datadog telemetry associated with the logging approach:
- logs
- traces
- metrics
- statsd is automatically attached to datadog runtime metrics and may also be used for custom metrics.
-
ResponseCodeStatsMiddleware
is included to capture response code metrics from rack applications
Customise log level per logger
For example, to show debug logging for MySubscriber
while having all other logs on info.
# The log level must be set to the lowest level which can be dynamically controlled.
LOG_LEVEL=DEBUG
# The default level for filtered logs.
LOG_NAMES_DEFAULT_LEVEL=INFO
# Per level overrides for filtered logs.
LOG_NAMES_DEBUG=MySubscriber
- Customised log names are available for each level e.g.
LOG_NAMES_TRACE
- Log names are matched on prefix.
- Multiple log names are supported via comma separated values.