IntelliJ Java IDE
The moose likes Other Open Source Projects and the fly likes log settings Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Reply Bookmark "log settings" Watch "log settings" New topic
Author

log settings

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 251
Hi

i use this in my class


i get output on the console with this.Iam guessing the framework came with Hibernate that i put in my project.

However how would i setup the logger levels and change the appender.

thanks for any hints
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32769
You can use different levels by calling other methods of Log. There's probably warn, error, fatal, debug, and maybe others (I don't have the docs in front of me, so I could have the names wrong). Consult the javadocs on which levels are available.

As to different appenders, I don't think Commons Logging supports this by itself. It is just a thin wrapper around various logging APIs. Have a look at Jakarta log4j -the standard logging API-, which works with Commons Logging and does support any number of appenders.


Android appsImageJ pluginsJava web charts
 
 
subject: log settings
 
Threads others viewed
iText: Digital signature
MessageListener -- class not found exception
where did log file go?
error executing ...
problems with packages and import statements
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com