Hi all,

I stumbled across the javadoc (log4j-1.2.14) for the EnhancedPatternLayout and 
would like to use the properties conversion pattern to pass additional 
information to the log output. Unfortunately I have not found out how this can 
be done, I saw that a LoggingEvent can be given a Map with properties during 
construction but usually you do not instantiate a LoggingEvent but let the 
Logger take care of it (the documentation even states that it is an internal 
representation so I would not try to use it directly). On the other hand you 
cannot pass any properties etc to a Logger or LoggerFactory. So I am kinda 
stumped here what I am missing.

Could anyone give me any pointers on this?

Thanks, Chris

Reply via email to