Alexei,

Thanks for your response!

I've used slf4j to re-direct the logs

IgniteConfiguration cfg = new IgniteConfiguration();
...
cfg.setGridLogger(new Slf4jLogger());
Ignition.start(cfg);

Added the ignite-slf4j-1.5.0.final.jar, slf4j-api-1.7.7.jar and
slf4j-log4j12-1.7.6.jar to the classpath

--Kamal


On Sun, Apr 17, 2016 at 6:03 PM, Alexei Scherbakov <
[email protected]> wrote:

> Hi,
>
>
> For embedded mode you can try something like this:
>
> IgniteConfiguration cfg = new IgniteConfiguration();
> ...
> cfg.setGridLogger(new Log4J2Logger(U.resolveIgniteUrl("log4j2.xml",
> false)));
> Ignition.start(cfg);
>
> The key point here is to tell Ignite to use Log4J2 implementation for
> logging.
> Make sure you have log4j2.xml on your classpath.
>
>
> 2016-04-16 15:40 GMT+03:00 Kamal C <[email protected]>:
>
>> 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
>>
>
>
>
> --
>
> Best regards,
> Alexei Scherbakov
>

Reply via email to