rice.environment.logging
Class AbstractLogManager
java.lang.Object
rice.environment.logging.AbstractLogManager
- All Implemented Interfaces:
- LogManager
- Direct Known Subclasses:
- RotatingLogManager, SimpleLogManager
public abstract class AbstractLogManager
- extends Object
- implements LogManager
- Author:
- jstewart
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
loggers
protected Hashtable<String,Logger> loggers
- Hashtable of loggers stored by full.class.name[instance]
params
protected Parameters params
time
protected TimeSource time
ps
protected PrintStream ps
prefix
protected String prefix
dateFormat
protected String dateFormat
packageOnly
protected boolean packageOnly
- If we only want package level granularity.
enabled
protected boolean enabled
nullPrintStream
protected static final PrintStream nullPrintStream
dateFormatter
public DateFormatter dateFormatter
SYSTEM_OUT
public static final String SYSTEM_OUT
- See Also:
- Constant Field Values
SYSTEM_ERR
public static final String SYSTEM_ERR
- See Also:
- Constant Field Values
AbstractLogManager
protected AbstractLogManager(PrintStream stream,
TimeSource timeSource,
Parameters params,
String prefix,
String df)
parseVal
protected int parseVal(String key)
getLogger
public Logger getLogger(Class clazz,
String instance)
- Description copied from interface:
LogManager
- Returns the Logger matching the parameters, constructs a new one if an
appropriate one hasn't yet been constructed.
- Specified by:
getLogger in interface LogManager
- Parameters:
clazz - the Class associated with this logger.instance - the instance-name associated with this logger.
- Returns:
- the logger.
constructLogger
protected abstract Logger constructLogger(String clazz,
int level,
boolean useDefault)
getTimeSource
public TimeSource getTimeSource()
getPrintStream
public PrintStream getPrintStream()
getPrefix
public String getPrefix()
Copyright © 2010. All Rights Reserved.