Logging using Log4j2

classic Classic list List threaded Threaded
3 messages Options
pgarg pgarg
Reply | Threaded
Open this post in threaded view
|

Logging using Log4j2

asked by cristian gheorghe florescu

Is this possible to add support for log4j2 into org.apache.ignite.logger.log4j package (Log4J2Logger)?

This could be an enhancement considering log4j2 enhanced performance and new features.

-- Thank you for your great work.

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss

pgarg pgarg
Reply | Threaded
Open this post in threaded view
|

Re: Logging using Log4j2

commented by cristian gheorghe florescu

Now I using JCL in order to access log4j2

See JCL logger example below:

...
  <property name="gridLogger">
      <bean class="org.apache.ignite.logger.jcl.IgniteJclLogger">
          <constructor-arg type="org.apache.commons.logging.Log">
              <bean class="org.apache.commons.logging.impl.Log4JLogger">
                  <constructor-arg type="java.lang.String" value="config/ignite-log4j2.xml"/>
              </bean>
          </constructor-arg>
      </bean>
  </property>
  ...


-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss

pgarg pgarg
Reply | Threaded
Open this post in threaded view
|

Re: Logging using Log4j2

commented by yakov zhdanov

I filed a ticket - https://issues.apache.org/jira/browse/IGNITE-788

Btw, you can contribute this functionality to Ignite :) ask for assistance on project dev-list.

-----
This post is migrated from now discontinued Apache Ignite forum at
http://apacheignite.readme.io/v1.0/discuss