tomcat logging and java.util.logging

2004-01-27 Thread Adam Hardy
In my webapp's context I configured a logger:

  Logger className=org.apache.catalina.logger.FileLogger
  prefix=localhost_gargantus_log.
  suffix=.txt
  timestamp=true /
I changed over from using log4j to using the native java.util.logging 
package, and I have lost the ability to write to this logger in my 
context. Instead, java.util.logging logs to the file I specify (or a 
default) in its own configuration file.

How come log4j was able to direct logging to the tomcat logger above? 
Can I get java.util.logging to do that?

Tomcat will catch java.util.logging output if I use this:

  Logger className=org.apache.catalina.logger.SystemOutLogger
  description=logs to catalina.out in tomcat logs dir /
Can anybody shed some light on this situation?

Thanks
Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: tomcat logging and java.util.logging

2004-01-27 Thread Shapira, Yoav

Howdy,

In my webapp's context I configured a logger:

   Logger className=org.apache.catalina.logger.FileLogger
   prefix=localhost_gargantus_log.
   suffix=.txt
   timestamp=true /

I changed over from using log4j to using the native java.util.logging
package, and I have lost the ability to write to this logger in my
context. Instead, java.util.logging logs to the file I specify (or a
default) in its own configuration file.

How come log4j was able to direct logging to the tomcat logger above?

My guess: because log4j is  better and has features specifically
tailored for servlet context logging?

Can anybody shed some light on this situation?

Light?  No.  Suggestion?  Yes: reverse your switch and use log4j.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]