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 <[email protected]> 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 <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > >
