You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by javadevmtl <ja...@gmail.com> on 2019/01/09 18:36:09 UTC

Extra console output from logs.

Hi using 2.3.7 and Slf4J and a Json encoder so all our logs can print as
Json.

We setup the logger as follows...

        IgniteLogger log = new Slf4jLogger();
        igniteConfig.setGridLogger(log);


But we have noticed that there is duplicate output from Ignite to the
console in the desired Json and plain console output.

I remember reading somewhere there a bug related to this?





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

Re: Extra console output from logs.

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

As far as I can see Ignite is going to print its logo to stderr or stdout
regardless of configured logger, along as some other output.

Regards,
-- 
Ilya Kasnacheev


чт, 10 янв. 2019 г. в 21:25, javadevmtl <ja...@gmail.com>:

> Nobody has experienced this? I'm not trying to disable logs. I'm just
> getting
> double the output...
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Extra console output from logs.

Posted by javadevmtl <ja...@gmail.com>.
Nobody has experienced this? I'm not trying to disable logs. I'm just getting
double the output...



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

RE: Extra console output from logs.

Posted by Stanislav Lukyanov <st...@gmail.com>.
Hi,

First, try to disable IGNITE_QUIET.

If still seeing duplicated messages after that, make sure you don’t have multiple slf4j adapters in the classpath.

Let me know if that helps.

Thanks,
Stan 

From: javadevmtl
Sent: 9 января 2019 г. 21:43
To: user@ignite.apache.org
Subject: Re: Extra console output from logs.

More precisely this is what we see...

This line is good:
{"appTimestamp":"2019-01-09T18:29:34.298+00:00","threadName":"vert.x-worker-thread-0","level":"INFO","loggerName":"org.apache.ignite.internal.IgniteKernal%xxxxxx-dev","message":"\n\n>>>   
__________  ________________  \n>>>   /  _/ ___/ |/ /  _/_  __/ __/  \n>>> 
_/ // (7 7    // /  / / / _/    \n>>> /___/\\___/_/|_/___/ /_/ /___/   \n>>>
\n>>> ver. 2.7.0#20181130-sha1:256ae401\n>>> 2018 Copyright(C) Apache
Software Foundation\n>>> \n>>> Ignite documentation:
http://ignite.apache.org\n"}

The below shouldn't print:
[13:29:34]    __________  ________________ 
[13:29:34]   /  _/ ___/ |/ /  _/_  __/ __/ 
[13:29:34]  _/ // (7 7    // /  / / / _/   
[13:29:34] /___/\___/_/|_/___/ /_/ /___/  
[13:29:34] 
[13:29:34] ver. 2.7.0#20181130-sha1:256ae401
[13:29:34] 2018 Copyright(C) Apache Software Foundation
[13:29:34] 
[13:29:34] Ignite documentation: http://ignite.apache.org
[13:29:34] 
[13:29:34] Quiet mode.
[13:29:34]   ^-- Logging by 'Slf4jLogger
[impl=Logger[o.a.i.i.IgniteKernal%xxxxxx-dev], quiet=true]'
[13:29:34]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
or "-v" to ignite.{sh|bat}
[13:29:34] 



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


Re: Extra console output from logs.

Posted by javadevmtl <ja...@gmail.com>.
More precisely this is what we see...

This line is good:
{"appTimestamp":"2019-01-09T18:29:34.298+00:00","threadName":"vert.x-worker-thread-0","level":"INFO","loggerName":"org.apache.ignite.internal.IgniteKernal%xxxxxx-dev","message":"\n\n>>>   
__________  ________________  \n>>>   /  _/ ___/ |/ /  _/_  __/ __/  \n>>> 
_/ // (7 7    // /  / / / _/    \n>>> /___/\\___/_/|_/___/ /_/ /___/   \n>>>
\n>>> ver. 2.7.0#20181130-sha1:256ae401\n>>> 2018 Copyright(C) Apache
Software Foundation\n>>> \n>>> Ignite documentation:
http://ignite.apache.org\n"}

The below shouldn't print:
[13:29:34]    __________  ________________ 
[13:29:34]   /  _/ ___/ |/ /  _/_  __/ __/ 
[13:29:34]  _/ // (7 7    // /  / / / _/   
[13:29:34] /___/\___/_/|_/___/ /_/ /___/  
[13:29:34] 
[13:29:34] ver. 2.7.0#20181130-sha1:256ae401
[13:29:34] 2018 Copyright(C) Apache Software Foundation
[13:29:34] 
[13:29:34] Ignite documentation: http://ignite.apache.org
[13:29:34] 
[13:29:34] Quiet mode.
[13:29:34]   ^-- Logging by 'Slf4jLogger
[impl=Logger[o.a.i.i.IgniteKernal%xxxxxx-dev], quiet=true]'
[13:29:34]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
or "-v" to ignite.{sh|bat}
[13:29:34] 



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