Re: Log4j2 - JConsole JMX appender

2013-10-31 Thread Mahesh Dilhan
Hi Scott, Thanks a lot , On Thu, Oct 31, 2013 at 10:25 AM, Scott Deboy scott.de...@gmail.com wrote: Actually there is already a WebLookup, which supports 'contextPath', 'servletContextName', etc. See: http://logging.apache.org/log4j/2.x/manual/lookups.html On 10/30/13, Scott Deboy

Re: Log4j2 - JConsole JMX appender

2013-10-30 Thread Scott Deboy
Mi Mahesh, If you'd like to use Chainsaw with log4j2, you need to use the latest Chainsaw developer snapshot, available here: http://people.apache.org/~sdeboy If you use a file appender in your log4j configuration, add the JmDns jar to your application classpath (http://jmdns.sourceforge.net),

Re: Log4j2 - JConsole JMX appender

2013-10-30 Thread Mahesh Dilhan
Hi Scott I already configured it , yes it works for fileAppeders. I have seen the perftest of async logger. will there be performance hit with fileAppender compared to async logger? I already noticed time taken for initialization process is varying for file and random access file. is it because

Re: Log4j2 - JConsole JMX appender

2013-10-30 Thread Scott Deboy
The page makes it clear that async loggers provide a clear throughput/latency advantage over async appenders...but. If folks use both async appenders and async loggers, won't that actually increase latency over just using async loggers? Then use all of that with random access file appenders..and

Re: Log4j2 - JConsole JMX appender

2013-10-30 Thread Mahesh Dilhan
Hi Scott thanks for the reply. Actually I wanted to know that how to get the *web-application-context-path dynamically, without hard-code in the log4j2.xml.* * * *Sorry for the inconvenience, if i did not make my self clear .* * * is there a way to output log file name as :

Re: Log4j2 - JConsole JMX appender

2013-10-30 Thread Scott Deboy
What might be easiest is to use separate log4j configurations for each web app, specifying unique names in each web app's log4j configuration file. See http://logging.apache.org/log4j/2.x/manual/logsep.html for more information. http://logging.apache.org/log4j/2.x/manual/webapp.html mentions

Re: Log4j2 - JConsole JMX appender

2013-10-30 Thread Scott Deboy
Actually there is already a WebLookup, which supports 'contextPath', 'servletContextName', etc. See: http://logging.apache.org/log4j/2.x/manual/lookups.html On 10/30/13, Scott Deboy scott.de...@gmail.com wrote: What might be easiest is to use separate log4j configurations for each web app,

Log4j2 - JConsole JMX appender

2013-10-28 Thread Mahesh Dilhan
Hi All, i'm interested in learning on JMX monitoring in log4j2. As explained I was able to get the log4j2 'tab' statusLogger child tab in JConsole with the initial logging statements. Note:version : 2.0.9beta log4j2.xml ?xml version=1.0 encoding=UTF-8? !-- No need to set system property

Re: Log4j2 - JConsole JMX appender

2013-10-28 Thread Remko Popma
Hi Mahesh, Thank you for re-posting your question to the user mailing list. The Status Logger is a special logger used by log4j internally. If you set it to debug or trace (by starting your config xml file with Configuration status=debug...), it will output things like which appenders and