tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Tomcat Wiki] Trivial Update of "Logging_Tutorial" by GlenIhrig
Date Sat, 25 Feb 2012 19:31:54 GMT
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message