wood burning stoves*
The moose likes Tomcat and the fly likes Logging with java.util.logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Logging with java.util.logging" Watch "Logging with java.util.logging" New topic
Author

Logging with java.util.logging

Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Hi.
(sorry but I don't find a forum better than this)
I am using java.util.logging package inside my application (inside the JSP files and inside the EJB components).
I wrote the following lines:
----------------------
Logger logger = Logger.getLogger(this.getClass( ).getName( ));
logger.log(Level.WARNING, "Message Here");
---------------------
when these lines executed, my message prints to the server console,
how to log my message to the server log files ?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I think it's pretty much appserver-specific. What application server are you using?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Tomcat 4.1.27
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Moving to the Tomcat Forum...
 
Consider Paul's rocket mass heater.
 
subject: Logging with java.util.logging