Extra console output from logs.

classic Classic list List threaded Threaded
5 messages Options
javadevmtl javadevmtl
Reply | Threaded
Open this post in threaded view
|

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/
javadevmtl javadevmtl
Reply | Threaded
Open this post in threaded view
|

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/
javadevmtl javadevmtl
Reply | Threaded
Open this post in threaded view
|

Re: Extra console output from logs.

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/
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: Extra console output from logs.

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 <[hidden email]>:
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/
Stanislav Lukyanov Stanislav Lukyanov
Reply | Threaded
Open this post in threaded view
|

RE: Extra console output from logs.

In reply to this post by javadevmtl

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: [hidden email]
Sent: 9 января 2019 г. 21:43
To: [hidden email]
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/