ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ibelyakov <igor.belyako...@gmail.com>
Subject Re: Ignite Audit logs into a separate file
Date Wed, 22 May 2019 09:06:16 GMT
Hi,

In case you're going to use log4j2 as gridLogger for Ignite you should add
"ignite-log4j2" dependency and set up Log4J2Logger as described here:
https://apacheignite.readme.io/docs/logging#section-log4j2

Or in case you just want to use "Audit-logs" logger independently, you
should create logger in this way:

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

private static final Logger logger = LogManager.getLogger("HelloWorld");

logger.info("Hi Hello ...........................");

More information regarding log4j2 can be found here:
https://logging.apache.org/log4j/2.x/manual/api.html

Regards,
Igor



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Mime
View raw message