ecs-logging-java icon indicating copy to clipboard operation
ecs-logging-java copied to clipboard

Customize log level names

Open florensie opened this issue 1 year ago • 0 comments
trafficstars

It would be nice to be able to customize the log level names. Logging libraries across different languages will often use different names for log levels. Eg. "Verbose" instead of "TRACE", or "Information" instead of "INFO".

For implementation, for the logback encoder I suggest a protected method that takes a log level and is allowed to return any string. I have not looked at possible solutions for the other supported logging libraries.

florensie avatar Dec 19 '23 15:12 florensie