Re: how to search and replace message text in outgoing log messages?

2013-02-15 Thread Tech Mail
Robert, It looks good, but do not know the answer to your question. I have a similar need but instead of replacing with a string, I want to add the logging context or the message header so that from the lines we can identify the source process. Yogi On Feb 14, 2013, at 3:17 PM, Robert

Re: Beta 4, is slf4j bindings broken?

2013-02-15 Thread Yogi Nerella
Ralph, Can you point me how to build this jar by myself, so that I do not need to wait for the next available build. Thanks Yogi On Wed, Feb 13, 2013 at 5:54 PM, Ralph Goers ralph.go...@dslextreme.comwrote: The SLF4J binding also supports the SLF4J extensions and so requires

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?

Re: how to set to RollingFileAppender interval to 5 minutes.

2013-02-15 Thread Yogi Nerella
Ralph, when I configure DatePattern, I recieve the following message, but it honors the parameter and generates the log files as configured. Is this a bug? 2013-02-15 11:59:11,233 ERROR RollingFile contains an invalid element or attribute DatePattern Yogi On Thu, Feb 14, 2013 at 10:39 AM,

Re: Beta 4, is slf4j bindings broken?

2013-02-15 Thread Ralph Goers
This is an slf4j jar. Download the jar from http://www.slf4j.org/download.html. Or add dependency groupIdorg.slf4j/groupId artifactIdslf4j-ext/artifactId version1.7.2/version /dependency to your maven pom. Ralph On Feb 15, 2013, at 10:26 AM, Yogi Nerella wrote: Ralph, Can you

Re: how to set to RollingFileAppender interval to 5 minutes.

2013-02-15 Thread Ralph Goers
I meant the data pattern in the filePattern attribute. As an example see https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk/core/src/test/resources/log4j-rolling2.xml. It is configured to roll every 2 seconds and to modulate. Ralph On Feb 15, 2013, at 2:18 PM, Yogi Nerella wrote: