Reputation: 94
I'm working in an enterprise that have an update on their application everyday.
I did an update yesterday because I haven't done it for a while. But there's an huge problem for me, developper, now: the standard output on the Eclipse Console doesn't come anymore after a dozen of lines, and I don't udnerstand why.
Indeed, here's the output when the problem come:
[02/08/2016 10:27:21] Info : Reading /me/test.properties property file
[02/08/2016 10:27:21] Info : Reading /me/test2.properties property file
[02/08/2016 10:27:21] Info : Reading /me/test3.version property file
[02/08/2016 10:27:21] Info : Connection to NamingService on host server with port 14010
-- listing properties --
org.omg.CORBA.ORBInitialPort=4444
org.omg.CORBA.ORBClass=com.sun.corba.se.internal.iiop.ORB
org.omg.CORBA.ORBInitialHost=server
org.omg.CORBA.ORBSingletonClass=com.sun.corba.se.internal.iiop.ORB
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/myDir/myFile.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/myDir2/myFile2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
And after that, I can't have normal output (and before I don't know but the fact that there is the Date and the hour is a good sign.
For example, if I do a little System.out.println("Hi")
it's not printed. And believe me, in that project, there's a LOT of Debug output that's supposed to be printed.
If you know why or if you think you can help me,
Thank you, Clément.
Upvotes: 1
Views: 5448
Reputation: 26961
SHORT ANSWER:
You will find your print console statements redirected into the logs. If they are not there is because standard output has been disabled. Use log.xxx
to get info from your app.
LONG ANSWER:
Force console output redirect to logs OR just avoid it via general configuration is an usual behaviour. A lot of companies, senior programmers or technical managers avoid output per console to force developers to write / read all application messages via logs by redirecting or disabling standard output.
THEY DO BECAUSE...
...using standard outputs are a common mistake made by junior programmers.
WHY?
Because this avoid
HOW TO SOLVE IT?
Don't use standard outputs, use log.info
, log.debug
or what you need instead System.out
or System.err
.
Upvotes: 0
Reputation: 1538
In server settings-common tab check if allocate console is checked or not
Upvotes: 0