|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.solarmetric.log.LogFactoryImpl
Default LogFactory
implementation. For ease of automatic
configuration, this implementation keys on only the last dot-separated
token of the log channel name.
Inner Class Summary | |
class |
LogFactoryImpl.LogImpl
A simple implementation of the Log interface. |
Field Summary | |
static String |
DEBUG_STR
|
static String |
ERROR_STR
|
static String |
FATAL_STR
|
static String |
INFO_STR
|
protected long |
initializationMillis
The time at which this factory was initialized. |
static String |
STDERR
|
static String |
STDOUT
|
static String |
TRACE_STR
|
static String |
WARN_STR
|
Constructor Summary | |
LogFactoryImpl()
|
Method Summary | |
short |
getDefaultLevel()
The default level for unconfigured log channels. |
static short |
getLevel(String str)
Returns a symbolic constant for the specified string level. |
static String |
getLevelName(short level)
Returns a string representation of the specified log level constant. |
Log |
getLog(String channel)
Return a log for the given channel name. |
PrintStream |
getStream()
The stream to write to. |
protected LogFactoryImpl.LogImpl |
newLogImpl()
Create a new log. |
void |
setDefaultLevel(short level)
The default level for unconfigured log channels. |
void |
setDefaultLevel(String level)
The string name of the default level for unconfigured log channels; used for automatic configuration. |
void |
setFile(String file)
The stream to write to. |
void |
setInto(Map m)
Perform any generic configuration based on the data in m . |
void |
setStream(PrintStream stream)
The stream to write to. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String TRACE_STR
public static final String DEBUG_STR
public static final String INFO_STR
public static final String WARN_STR
public static final String ERROR_STR
public static final String FATAL_STR
public static final String STDOUT
public static final String STDERR
protected final long initializationMillis
Constructor Detail |
public LogFactoryImpl()
Method Detail |
public Log getLog(String channel)
LogFactory
getLog
in interface LogFactory
protected LogFactoryImpl.LogImpl newLogImpl()
public void setDefaultLevel(String level)
public short getDefaultLevel()
public void setDefaultLevel(short level)
public void setFile(String file)
stdout
and stderr
. Any other value will be considered a
file name.public PrintStream getStream()
public void setStream(PrintStream stream)
public static String getLevelName(short level)
public static short getLevel(String str)
public void setInto(Map m)
GenericConfigurable
m
. This method should remove any values in
m
that have been successfully processed; if any
values remain in m
after this method is executed,
an exception will be thrown identifying those key-value pairs
as invalid.setInto
in interface GenericConfigurable
|
SolarMetric Kodo JDO 3.1.6 generated on August 25 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |