Are you naming the file log4j2.xml?
On 7 August 2014 17: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> > -- Matt Sicker <[email protected]>
