Re: Can substitution in replace regexpression take the MDC context key name?

2013-02-19 Thread Yogi Nerella
Ralph, My intention is basically to replace all \n in the message with the ThreadContext for our application. I think RegexReplacement is not taking variables for pattern and substitution. I am using the following in pattern-layout, but the substitution is not happening correctly, and also by

Re: Can substitution in replace regexpression take the MDC context key name?

2013-02-15 Thread Ralph Goers
Where are you wanting to do this? In a pattern in the pattern layout you just use %X{app name} as you show below. In many places you can use ${mdc:name}. Ralph On Feb 15, 2013, at 12:02 PM, Yogi Nerella wrote: Hi, I want to replace some constant strings with the MDC.context() values?