Hi,

You can find default Log4J config under
%IGNITE_HOME%/config/ignite-log4j.xml
File appender is already configured there, so you can use it as example:

<appender name="FILE"
class="org.apache.ignite.logger.log4j.Log4jRollingFileAppender">
  <param name="Threshold" value="DEBUG"/>
  <param name="File" value="${IGNITE_HOME}/work/log/ignite.log"/>
  <param name="Append" value="true"/>
  <param name="MaxFileSize" value="10MB"/>
  <param name="MaxBackupIndex" value="10"/>
  <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="[%d{ABSOLUTE}][%-5p][%t][%c{1}]
%m%n"/>
  </layout>
</appender>

Vladimir.


On Sat, Apr 16, 2016 at 7:46 PM, tomk <[email protected]> wrote:

> Hello,
> Could someone tell me, how to configure your logger to write into file ?
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/Using-Ignite-log4j-tp4252.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>

Reply via email to