Re: Logging using log4j.xml 2

2014-08-07 Thread Mohit Anchlia
I realized it later and changed it to log4j2.xml and now it works On Thu, Aug 7, 2014 at 3:35 PM, Remko Popma wrote: > The config file should be named log4j2.xml, not log4j.xml. Did you try > that? > > Remko > > Sent from my iPhone > > > On 2014/08/08, at 7:16, Mohit Anchlia wrote: > > > > I h

Re: Logging using log4j.xml 2

2014-08-07 Thread Matt Sicker
Are you naming the file log4j2.xml? On 7 August 2014 17:16, Mohit Anchlia wrote: > I have below xml but my application is not printing the logs to console. I > am running through eclipse and this file is in main/resources. > > > > > > > > > > %msg%n"*/> > > > > > > > > > > > > > > >

Re: Logging using log4j.xml 2

2014-08-07 Thread Remko Popma
The config file should be named log4j2.xml, not log4j.xml. Did you try that? Remko Sent from my iPhone > On 2014/08/08, at 7:16, Mohit Anchlia wrote: > > I have below xml but my application is not printing the logs to console. I > am running through eclipse and this file is in main/resources.

Logging using log4j.xml 2

2014-08-07 Thread Mohit Anchlia
I have below xml but my application is not printing the logs to console. I am running through eclipse and this file is in main/resources.

Re: Set the file name based on command line args

2014-08-07 Thread Gary Gregory
Please see this experiment: https://issues.apache.org/jira/browse/LOG4J2-771 Gary On Thu, Aug 7, 2014 at 7:57 AM, Gary Gregory wrote: > On an Oracle JVM, you use a system property lookup to get the > "sun.java.command" system property which gives you the whole command line > but we do not have

Re: Set the file name based on command line args

2014-08-07 Thread Gary Gregory
On an Oracle JVM, you use a system property lookup to get the "sun.java.command" system property which gives you the whole command line but we do not have a syntax to parse it... Gary On Thu, Aug 7, 2014 at 2:27 AM, Gary Gregory wrote: > It'll be more complicated than just grabbing the main ar