Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Tomcat
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Tomcat
Where is the log message written?
Nigel Chou
Ranch Hand
Posts: 47
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; public class NwValueAssistanceManager extends Component { private static Log logger = LogFactory.getLog(NwValueAssistanceManager.class); public void onInit() { logger.info("onInit: start"); } }
I don't know which file is "onInit: start" written, and I didn't find any file including the message under
Tomcat
5.0\logs.
Does logger need configaration?
SCJP for Java 2, SCWCD, SCMAD
Srinivasan Jayabalan
Greenhorn
Posts: 4
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Look for log4j.properties normally present under <tomcat>/webapps/ur_web_app/WEB-INF/classes, if you are using the same for logging. This file will have thje logfile name in it.
[ October 14, 2005: Message edited by: Srinivasan Jayabalan ]
Bear Bibeault
Sheriff
Posts: 67746
173
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Except, of course, that he's not using Log4J.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
logging lifecyle events of servlet
How to make each log entry start on a new line?
Log4J created two log files but should have only done one
problems with packages and import statements
Writing logs to a single file from Multiple Classes
More...