logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohit Anchlia <mohitanch...@gmail.com>
Subject Re: Logging using log4j.xml 2
Date Thu, 07 Aug 2014 23:38:55 GMT
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 <remko.popma@gmail.com> 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 <mohitanchlia@gmail.com> 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.
> >
> > <?xml version=*"1.0"* encoding=*"UTF-8"*?>
> >
> > <Configuration status=*"INFO"* monitorInterval=*"30"*>
> >
> > <Appenders>
> >
> > <Console name=*"Console"* target=*"SYSTEM_OUT"*>
> >
> > <PatternLayout pattern=*"%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} -
> > %msg%n"*/>
> >
> > </Console>
> >
> > </Appenders>
> >
> > <Loggers>
> >
> > <Root level=*"INFO"*>
> >
> > <AppenderRef ref=*"Console"*/>
> >
> > </Root>
> >
> > </Loggers>
> >
> > </Configuration>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message