Re: default value for missing key in mdc

2013-10-20 Thread Woonsan Ko
wrote: > > Please remember that mine is just one opinion, but I am fine with that.  I > > guess > if no default value is provided this way then it can still fall back to > looking > in the properties map. > > Ralph > > > On Oct 9, 2013, at 12:53 PM, Woonsan Ko

Re: default value for missing key in mdc

2013-10-09 Thread Woonsan Ko
Hi Ralph, I have something related to this improvement idea. I have thought it might be a bit more useful and flexible to allow default value in the variable expression itself. For example, ${var1:-defvalue1}, ${ctx:request_id:-defvalue2}, etc. This generic feature has been included in StrSubsti

Re: Lookup support for JNDI resources?

2013-07-17 Thread Woonsan Ko
Thanks, Ralph! I'll be happily trying to post a patch soon in the following JIRA issue: - https://issues.apache.org/jira/browse/LOG4J2-313 Cheers, Woonsan > > From: Ralph Goers >To: Log4J Users List ; Woonsan Ko > >Sent: Wednesday, Ju

Lookup support for JNDI resources?

2013-07-17 Thread Woonsan Ko
Hi, I'd like to use RoutingAppender [1] to put all the logs from the same web application context in a log file  (a log file per web application context). I think I can achieve almost the same feature as logback SiftingAppender [2] with that, but I have one problem. I want to use JNDI resources