HBASE-27762 Include EventType and ProcedureV2 pid in logging via MDC (addendum)
Make use of `%notEmpty` pattern with MDC logging. Will function as expected once we upgrade to Log4J 2.21.0+.
This commit is contained in:
parent
95f83cb8e2
commit
22164147d0
|
@ -25,7 +25,7 @@ appender.console.type = Console
|
|||
appender.console.target = SYSTEM_ERR
|
||||
appender.console.name = console
|
||||
appender.console.layout.type = PatternLayout
|
||||
appender.console.layout.pattern = %d{ISO8601} %-5p [%t (%X)] %c{2}: %.1000m%n
|
||||
appender.console.layout.pattern = %d{ISO8601} %-5p [%t%notEmpty{ %X}] %c{2}: %.1000m%n
|
||||
|
||||
# Daily Rolling File Appender
|
||||
appender.DRFA.type = RollingFile
|
||||
|
|
|
@ -26,7 +26,7 @@ appender.console.target = SYSTEM_ERR
|
|||
appender.console.name = Console
|
||||
appender.console.maxSize = 1G
|
||||
appender.console.layout.type = PatternLayout
|
||||
appender.console.layout.pattern = %d{ISO8601} %-5p [%t (%X)] %C{2}(%L): %m%n
|
||||
appender.console.layout.pattern = %d{ISO8601} %-5p [%t%notEmpty{ %X}] %C{2}(%L): %m%n
|
||||
|
||||
rootLogger = INFO,Console
|
||||
|
||||
|
|
Loading…
Reference in New Issue