• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to change Eclipse logging level

 
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Google hasn't helped me on this one. I want to change the default logging level in the Eclipse console window to "WARN". All the info messages are not helpful and just clutter up the console. I can't find anything in Preferences about this. The only log4j.properties file  is in C:\eclipse\plugins\org.apache.axis_1.4.0.v201411182030\lib. I changed that and restarted, but no change in the console.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The logging level of what? Eclipse sends System.out and System.err to console. And things that are from other likes like Tomcat and controlled by that log's level.

Can you give na example of something being output that you don't want?
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I should have been more specific. I want to get rid of the messages in red. In this case, at least they are separated, but often the program output is broken up by intervening INFO messages.

I think what would be ideal would be to have one console for System.out and another one for System.err, but I doubt if that is possible. This is Eclipse Mars, if that matters.

 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ah. That's coming from Spring. Since you (presumably) don't have any log settings configured, it is using the defaults - which is the console. The way to fix it is to add a logging properties file to the classpath of your Eclipse project. That way Java sees that and doesn't route to the console.

And all versions of Eclipse behave this way. Also, this should happen if you run at the command line too. It's not an Eclipse problem per se.
 
J. Kevin Robbins
Bartender
Posts: 1810
28
jQuery Netbeans IDE Eclipse IDE Firefox Browser MySQL Database Chrome Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, Jeanne. I'll dig into the Spring logging. It's not a big deal, just a minor annoyance, so it will be nice to know how to correct it. I need more proficiency with log4j anyway, so this is a good exercise.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
como lo solucionaste? me puedes explicar paso a paso?
 
Marshal
Posts: 79151
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
DL: welcome to the Ranch

Please note this is an English language site; please translate your post into English.
reply
    Bookmark Topic Watch Topic
  • New Topic