standardize log DEBUG

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@915 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2009-09-16 05:56:39 +00:00
parent 12f440c894
commit 5e40f89cef
2 changed files with 6 additions and 8 deletions

View File

@ -40,15 +40,12 @@ NOTE: Not all properties are listed here.
org.eclipse.jetty.util.log.class=[class]
A Low Level Jetty Logger Implementation to use
(default: org.eclipse.jetty.util.log.Slf4jLog)
org.eclipse.jetty.util.log.DEBUG=[boolean]
Debug logs will be produced, along with the default logging levels of
INFO, WARN, and ERROR
(default: false)
org.eclipse.jetty.util.log.VERBOSE=[boolean]
Verbose logging is produced, including ignored exceptions
org.eclipse.jetty.util.log.stderr.DEBUG=[boolean]
Debug logging for the stderr and javautil Loggers. Slf4j
and other loggers must be separately configured for debug.
(default: false)
org.eclipse.jetty.util.log.IGNORED=[boolean]
Ignored exceptions are logged, independent of DEBUG and VERBOSE settings
Ignored exceptions are logged, independent of DEBUG settings
(default: false)
STOP.PORT=[number]
The port to use to stop the running Jetty server.

View File

@ -32,7 +32,8 @@ public class StdErrLog implements Logger
{
private static DateCache _dateCache;
private final static boolean __debug = Boolean.parseBoolean(System.getProperty("org.eclipse.jetty.util.log.stderr.DEBUG","false"));
private final static boolean __debug =
Boolean.parseBoolean(System.getProperty("org.eclipse.jetty.util.log.DEBUG",System.getProperty("org.eclipse.jetty.util.log.stderr.DEBUG","false")));
private boolean _debug = __debug;
private final String _name;
private boolean _hideStacks=false;