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
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"*/>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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.
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.
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
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