Post details: Tomcat JULI logging properties

May 25, 2006 : Tomcat JULI logging properties

Tomcat 5.5 provides the "JULI" implementation of the Java Logging API and extends it with things like per-classloader configuration. http://tomcat.apache.org/tomcat-5.5-doc/logging.html is decent documentation, but nowhere do they list all the properties for configuration.

I had to look into the source of org/apache/juli/FileHandler.java which was pretty hard to find too.

Anyway, here are all the properties:

  • org.apache.juli.FileHandler.directory
  • org.apache.juli.FileHandler.prefix
  • org.apache.juli.FileHandler.suffix
  • org.apache.juli.FileHandler.level
  • org.apache.juli.FileHandler.filter
  • org.apache.juli.FileHandler.formatter

There is no pattern to control the formatting of the filename, so you're stuck with one that always has the date, I guess.

Comments, Pingbacks:

Comment from: Yoav Shapira [Visitor] · http://www.yoavshapira.com
Dave, thank you for letting us know of this imperfect documentation. I've taken the liberty to submit this as a Bugzilla issue (http://issues.apache.org/bugzilla/show_bug.cgi?id=39661), and I have fixed it in SVN. The updated documentation will be available with the next Tomcat release (v5.5.18).
Permalink 05/25/06 @ 16:03
Comment from: Dave Brondsema [Member] · http://brondsema.net/
Thanks, Yoav. Fixing the source is better than talking about it somewhere else, of course.
Permalink 05/26/06 @ 00:33
Comment from: Yoav Shapira [Visitor] · http://www.yoavshapira.com
I actually figured people who found the source and understood it would not need extra documentation, so I preferred to document the stuff in the more easily accessible location. But if you want more documentation in the .java file itself, I'll be glad to commit a patch -- just attach whatever you want to the Bugzilla issue referenced above.
Permalink 05/26/06 @ 09:06
Comment from: Dave Brondsema [Member] · http://brondsema.net/
No, by the "source" I actually meant the tomcat documentation, not the source code. It's better to update the tomcat docs (like you have) than for me to just blog about it.
Permalink 05/26/06 @ 09:11

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.
What is the 2-letter abbreviation for Michigan?
Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
Options:
 
(Line breaks become <br />)
(Set cookies for name, email & url)

<  June 2019  >
Mon Tue Wed Thu Fri Sat Sun
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Categories


Archives

Misc

Syndicate this blog XML

powered by
b2evolution