Code: Select all
%d{ISO8601} | %-5.5p | %-16.16t | %-50.50C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
Code: Select all
2014-03-20 11:47:28,193 | INFO | NioProcessor-2 | hd.common.session.AbstractSession$1IoSessionCloser 294 | 26 - org.apache.sshd.core - 0.8.0 | Session null@/fd00:0:0:a40:a236:9fff:fe11:d745:40949 closed
Code: Select all
Timestamp | Level | Thread | Emitter Line | MDC - MDC - MDC | Message
Will it be possibe to enhance Log4J parser to support more MDC columns and use its pattern definition names? E.g. for this example the resultinh table will contain three columnts "bundle.id", "bundle.name" and "bundle.version" instead of single "MDC" column.
As a workaround I modified Log4j pattern provided to the LogMX to:
Code: Select all
%d{ISO8601} | %-5.5p | %-16.16t | %-50.50C %4L | %X | %m%n
Regards!