classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch: logging.properties


From: Sascha Brawer
Subject: Re: Patch: logging.properties
Date: Fri, 16 Jan 2004 12:50:08 +0100

Michael Koch <address@hidden> wrote on Fri, 16 Jan 2004 11:48:16 +0100:

>>>> [Patch for adding logging.properties]

>This is not to overwrite things in java.util.logging in the default
>version. It's more to make the administrator aware that he can change
>the defaults easily site-global. It should show the defaults in
>java.util.logging too. That way the admin doesnt has to look into the
>sources to see them. Thats not the case currently. The logging.properties
>in Suns JRE does this. 

If the only purpose of the patch is documentation, it really should have
more verbose comments. I don't think that the proposed patch would
actually help a sysadmin very much. What about the following?

# Logging Configuration
# ---------------------
# By setting properties in this file, you can change the behavior
# of the java.util.logging framework. Some examples are listed below.
#
#
# To change the logging threshold of all loggers to the value
# java.util.logging.Level.CONFIG, un-comment the following line:
#
# .level=CONFIG
#
#
# To change the logging threshold of all loggers in the "foo.bar"
# namespace to java.util.logging.Level.FINEST, un-comment the follwing
# line. This will also affect any children, such as "foo.bar.baz".
#
# foo.bar.level=FINEST
#
#
# To register a FileHandler for the "foo.bar" namespace and its
# children, un-comment the following line. By default, the FileHandler
# will write XML-formatted messages into a file "java0.log" in the
# user's home directory.
#
# foo.bar.handlers=java.util.logging.FileHandler
#
#
# To make a FileHandler use plain text instead of XML, and to place
# the log file into a different location (such as /tmp/myfile.log
# or /var/tmp/myfile.log), un-comment the following:
#
# java.util.logging.FileHandler.pattern=%t/myfile.log
# java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
#
#
# Logging can be configured in many ways. For more information, please
# look at the documentation of the java.util.logging package.

-- Sascha

Sascha Brawer, address@hidden, http://www.dandelis.ch/people/brawer/ 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]