Hi

    I'm not able to re-direct the Ignite logs to log4j2. I tried it by
adding the optional `ignite-log4j2` directory to the class path and added
the log4j2.xml. Still, the logs thrown to the console.

Can anyone tell how to re-direct the logs?

--Kamal
<?xml version="1.0" encoding="UTF-8"?>
<Configuration  >

<!--  APPENDERS -->
<Appenders>
	<Console name="console" target="SYSTEM_OUT">
   		<PatternLayout pattern="[%d{ISO8601}] %c{1}: %M(): %m%n"/>
    </Console>

    <RollingFile name="stdout" fileName="logs/stdout.txt" append="true" filePattern="logs/stdout.txt.%i">
    	<PatternLayout pattern="%5p [%d{ISO8601}] : [%t] : %c{1}: %M(): %m%n"/>
        <Policies>
        	<SizeBasedTriggeringPolicy size="30 MB"/>
        </Policies>
        <DefaultRolloverStrategy max="100" fileIndex="min" />
	</RollingFile>
</Appenders>
<!--  END OF APPENDERS -->

<!--  LOGGERS -->
<Loggers>
	<!-- //log4j levels: TRACE < DEBUG < INFO < WARN < ERROR < FATAL -->
	<Root level="DEBUG">
		<AppenderRef ref="stdout"/>
	</Root>
</Loggers>

</Configuration>

Reply via email to