DESY ACOP Beans Home

com.cosylab.logging
Class DebugLogger

java.lang.Object
  extended by java.util.logging.Logger
      extended by com.cosylab.logging.DebugLogger

public class DebugLogger
extends java.util.logging.Logger

DebugLogger is wrapper around Logger class, which produces logger with preset arbitrary logging level and handler ConsoleLogHandler.

Since:
Jun 27, 2004.
Version:
$Id: DebugLogger.java,v 1.3 2008-04-22 12:26:29 jbobnar Exp $
Author:
Igor Kriznar

Field Summary
 
Fields inherited from class java.util.logging.Logger
global, GLOBAL_LOGGER_NAME
 
Constructor Summary
protected DebugLogger(java.lang.String name, java.lang.String resourceBundleName)
           
 
Method Summary
static java.util.logging.Logger getLogger(java.lang.String name, java.util.logging.Level level)
          Returns logger with specified name and initial logging level.
static void main(java.lang.String[] args)
          DOCUMENT ME!
 
Methods inherited from class java.util.logging.Logger
addHandler, config, entering, entering, entering, exiting, exiting, fine, finer, finest, getAnonymousLogger, getAnonymousLogger, getFilter, getHandlers, getLevel, getLogger, getLogger, getName, getParent, getResourceBundle, getResourceBundleName, getUseParentHandlers, info, isLoggable, log, log, log, log, log, logp, logp, logp, logp, logrb, logrb, logrb, logrb, removeHandler, setFilter, setLevel, setParent, setUseParentHandlers, severe, throwing, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugLogger

protected DebugLogger(java.lang.String name,
                      java.lang.String resourceBundleName)
Method Detail

getLogger

public static java.util.logging.Logger getLogger(java.lang.String name,
                                                 java.util.logging.Level level)
Returns logger with specified name and initial logging level. If level is OFF , then instance of NullLogger is return, which statically sends all logs to dev/null.

Parameters:
name - a name for the logger
level - initial level of logger
Returns:
a logger, NullLogger if level is OFF
See Also:
Logger.getLogger(java.lang.String)

main

public static void main(java.lang.String[] args)
DOCUMENT ME!

Parameters:
args - DOCUMENT ME!


Copyright © 2010. All Rights Reserved.