Closed jeantil closed 1 year ago
Hello,
I am trying to get a logger and thread labels using the logback appender. It looks like it is possible for log4j using log4j patterns (requested in https://github.com/tkowalcz/tjahzi/issues/56 and introduced in https://github.com/tkowalcz/tjahzi/pull/62) but not in logback.
logger
thread
I have found the predefined level label, I managed to have labels sourced from environment such as
<label> <name>server</name> <value>${HOSTNAME}</value> </label>
I also have mdc labels
<mdcLogLabel> host </mdcLogLabel>
but none of these allow me to tag the log line with logger or thread name.
Looking at the definition of ch.qos.logback.classic.spi.ILoggingEvent, both properties are information at the same level as loglevel
ch.qos.logback.classic.spi.ILoggingEvent
Thank you for a thorough analysis and code contribution. Please allow me a few day to investigate it and evaluate the PR. Much appreciated.
Hello,
I am trying to get a
logger
andthread
labels using the logback appender. It looks like it is possible for log4j using log4j patterns (requested in https://github.com/tkowalcz/tjahzi/issues/56 and introduced in https://github.com/tkowalcz/tjahzi/pull/62) but not in logback.I have found the predefined level label, I managed to have labels sourced from environment such as
I also have mdc labels
but none of these allow me to tag the log line with logger or thread name.
Looking at the definition of
ch.qos.logback.classic.spi.ILoggingEvent
, both properties are information at the same level as loglevel