Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logging printout

Status
Not open for further replies.

qvtqt

Programmer
Oct 13, 2000
16
0
0
US
Hello everyone,

I'm trying to find a way to control the printout to standard terminal every time I call the logger to log messages. I don't want the logger to print everything I log out to the terminal. My typical call is:
logger.log( Level.INFO, "Messages" );

I don't see any documentation on how to do this.

Thanks.
 
Thanks JVZ. setLevel() sets the sensitivity by which the logger logs information to the log file. What I was looking for is how to control the log *printout* to standard terminal. I just found how to do that using LogManager.
(You can set the printout level by modifying the logging.properties file under
...skd/jre/lib/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top