permaculture playing cards*
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
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: 3476

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: 3476

Tomcat 4.1.27
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Moving to the Tomcat Forum...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Logging with java.util.logging
 
Similar Threads
NX: Error messages in the console
java.util.logging
Naming logger instances
How to get log file location inside code
java.util.logging