|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.util.log.AbstractPropsLogFactory
This class is a log stream that's configured by a set of properties.
Property names for controlling the debugging come from subclasses.
The properties which control the debugging might be as follows:
log.ejb.outputstreams =log.ejb.files = log.ejb.filesappend = log.ejb.timedflushmillis = log.ejb.timedflushbufsize = log.ejb.level =
log.jsp.outputstreams = java.lang.System.out,com.foo.gui.DebugWindow.out log.jsp.files = ejblog.txt,ejbdebug_backup.txt log.jsp.filesappend = true log.jsp.timedflushmillis = 2000 log.jsp.timedflushbufsize = 4096 log.jsp.level = debug
Fields inherited from interface com.compoze.util.log.ILogLevel |
DEBUG, DISABLED, ERROR, INFO, WARNING |
Constructor Summary | |
protected |
AbstractPropsLogFactory(ObjectProperties debugProps)
Constructor. |
protected |
AbstractPropsLogFactory(ObjectProperties debugProps,
java.lang.String sConfigName)
Constructor. |
Method Summary | |
LogStream |
createLogStream()
Creates the log stream. |
LogStream |
createLogStream(boolean bDefault)
Creates the log stream. |
protected java.lang.String |
getFilesAppendKey()
Gets the key for files append (if true, append rather than replace files). |
protected java.lang.String |
getFilesKey()
Gets the key for files (comma separated list of files). |
protected java.lang.String |
getIdentifierKey()
Gets the identifier key. |
protected java.lang.String |
getLogLevelKey()
Gets the log level key (ERROR, WARNING, INFO, or DEBUG). |
protected java.lang.String |
getOutputStreamsKey()
Gets the key for the output streams (comma separated list of variables that point to OutputStreams). |
protected java.lang.String |
getTimedFlushBufsizeKey()
Gets the key for timed flush buffer size (size of buffer to fill for flush). |
protected java.lang.String |
getTimedFlushMillisKey()
Gets the key for timed flush milliseconds (minimum number of milliseconds between flushes). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AbstractPropsLogFactory(ObjectProperties debugProps, java.lang.String sConfigName)
debugProps
- the debug propertiessConfigName
- the configuration name to useprotected AbstractPropsLogFactory(ObjectProperties debugProps)
debugProps
- the debug propertiesMethod Detail |
public LogStream createLogStream()
createLogStream
in interface ILogStreamFactory
public LogStream createLogStream(boolean bDefault)
protected java.lang.String getOutputStreamsKey()
protected java.lang.String getFilesKey()
protected java.lang.String getFilesAppendKey()
protected java.lang.String getTimedFlushMillisKey()
protected java.lang.String getTimedFlushBufsizeKey()
protected java.lang.String getLogLevelKey()
protected java.lang.String getIdentifierKey()
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |