logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <ralph.go...@dslextreme.com>
Subject Re: Can substitution in replace regexpression take the MDC context key name?
Date Sat, 16 Feb 2013 00:04:04 GMT
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?
> 
> Does regularexpress replace support this?
> 
> Ex:
> %replace{%msg}{myappname}{%X{appname}}
> 
> Thanks
> Yogi


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message