You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by tomk <rr...@gmail.com> on 2016/04/16 18:46:32 UTC

Using Ignite-log4j

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.

Re: Using Ignite-log4j

Posted by Vladimir Ozerov <vo...@gridgain.com>.
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 <rr...@gmail.com> 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.
>