Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.
The "Logging_Tutorial" page has been changed by GlenIhrig: http://wiki.apache.org/tomcat/Logging_Tutorial?action=diff&rev1=6&rev2=7 = Primer On java.util.logging and JULI = - The goal of this primer is to demonstrate how to to log with + The goal of this primer is to demonstrate how to log with java.util.logging, as implemented by JULI, as a backdrop to the rest of the tutorial, in particular the sections related to configuring Tomcat logging with the configuration file. @@ -33, +33 @@ the above concepts / classes extensively. Lets start with Loggers. - What's the purpose of a Logger? A Logger is what a developer uses to write a log statements + What's the purpose of a Logger? A Logger is what a developer uses to write log statements to the console, to a file, to the network, etc. If you wanted to log something from your web application's class CriticalComponent using java.util.logging you would first create a logger like this: @@ -50, +50 @@ Pay attention to how we defined the name of the Logger. This is important to the material explaining Tomcat's logging configuration. You may also - want to think about why the myLogger is a static field (Hint myLogger is shared + want to think about why myLogger is a static field (Hint myLogger is shared among all instances of CriticalComponent). Now you have a logger to create logging messages from your class CriticalComponent. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org