Compoze Software, Inc.

com.compoze.util.log
Class AbstractPropsLogFactory


java.lang.Object

  |

  +--com.compoze.util.log.AbstractPropsLogFactory

All Implemented Interfaces:
ILogLevel, ILogStreamFactory, java.io.Serializable
Direct Known Subclasses:
DefaultLogFactory, EjbLogFactory, MailLogFactory, TriggerLogFactory

public abstract class AbstractPropsLogFactory
extends java.lang.Object
implements ILogStreamFactory, ILogLevel, java.io.Serializable

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 = 
 

Example:

 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
 

See Also:
Serialized Form

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

AbstractPropsLogFactory


protected AbstractPropsLogFactory(ObjectProperties debugProps,
                                  java.lang.String sConfigName)
Constructor.
Parameters:
debugProps - the debug properties
sConfigName - the configuration name to use

AbstractPropsLogFactory


protected AbstractPropsLogFactory(ObjectProperties debugProps)
Constructor.
Parameters:
debugProps - the debug properties
Method Detail

createLogStream


public LogStream createLogStream()
Creates the log stream.
Specified by:
createLogStream in interface ILogStreamFactory
Returns:
the new log stream

createLogStream


public LogStream createLogStream(boolean bDefault)
Creates the log stream.
Returns:
the new log stream

getOutputStreamsKey


protected java.lang.String getOutputStreamsKey()
Gets the key for the output streams (comma separated list of variables that point to OutputStreams).
Returns:
the key

getFilesKey


protected java.lang.String getFilesKey()
Gets the key for files (comma separated list of files).
Returns:
the key

getFilesAppendKey


protected java.lang.String getFilesAppendKey()
Gets the key for files append (if true, append rather than replace files).
Returns:
the key

getTimedFlushMillisKey


protected java.lang.String getTimedFlushMillisKey()
Gets the key for timed flush milliseconds (minimum number of milliseconds between flushes).
Returns:
the key

getTimedFlushBufsizeKey


protected java.lang.String getTimedFlushBufsizeKey()
Gets the key for timed flush buffer size (size of buffer to fill for flush).
Returns:
the key

getLogLevelKey


protected java.lang.String getLogLevelKey()
Gets the log level key (ERROR, WARNING, INFO, or DEBUG).
Returns:
the key

getIdentifierKey


protected java.lang.String getIdentifierKey()
Gets the identifier key.
Returns:
the key

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.