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
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Tomcat
Where is the log message written?
Nigel Chou
Ranch Hand
Posts: 47
posted 19 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 19 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: 67752
173
I like...
posted 19 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
]
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
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...