| java.lang.Object org.cougaar.util.log.log4j.LoggerControllerImpl
LoggerControllerImpl | class LoggerControllerImpl implements LoggerController(Code) | | Package-private log4j implementation of a logger-controller.
Note that log4j uses static methods to control its logging,
such as "Logger.*" methods.
|
Method Summary | |
public void | addConsole() Add a console output type to this logger. | public void | addLogTarget(int outputType, Object outputDevice) Add a logging destination.
Parameters: outputType - The output type either CONSOLE, FILE, or STREAM. | public Enumeration | getAllLoggerNames() Special "static" method to get the names of all loggers. | public LogTarget[] | getLogTargets() Get an array of all LogTargets for this logger. | public LoggerController | getLoggerController(String o) Special "static" method to get a named logger. | public int | getLoggingLevel() Get the logging level. | public boolean | removeLogTarget(int outputType, Object outputDevice) Remove a logging output type.
Parameters: outputType - The output type either CONSOLE, FILE, or STREAM oflogging output to be removed. | public boolean | removeLogTarget(int outputType, String deviceString) Remove a logging output type.
This method is usually used in conjunction with
LoggerController.getLogTargets to
iterate through list to remove items.
Parameters: outputType - - The output type either CONSOLE, FILE, or STREAM oflogging output to be removed. | public void | setLoggingLevel(int level) Set the logging level. |
LoggerControllerImpl | public LoggerControllerImpl()(Code) | | |
LoggerControllerImpl | public LoggerControllerImpl(String name)(Code) | | |
addConsole | public void addConsole()(Code) | | Add a console output type to this logger.
This is equivalent to:
addLogTarget(LogTarget.CONSOLE, null);
|
addLogTarget | public void addLogTarget(int outputType, Object outputDevice)(Code) | | Add a logging destination.
Parameters: outputType - The output type either CONSOLE, FILE, or STREAM. Seeconstants above. Parameters: outputDevice - The device associated with the particular outputtype being added. Null for Console, filename for FILE, the actualoutput stream object for STREAM. |
getAllLoggerNames | public Enumeration getAllLoggerNames()(Code) | | Special "static" method to get the names of all loggers.
This should be moved to a different interface...
|
getLogTargets | public LogTarget[] getLogTargets()(Code) | | Get an array of all LogTargets for this logger.
return an array of
LogTarget representing all
the various logging destinations.
|
getLoggerController | public LoggerController getLoggerController(String o)(Code) | | Special "static" method to get a named logger.
This should be moved to a different interface...
|
getLoggingLevel | public int getLoggingLevel()(Code) | | Get the logging level.
a Logger level constant (DEBUG, INFO, etc) See Also: Logger |
removeLogTarget | public boolean removeLogTarget(int outputType, Object outputDevice)(Code) | | Remove a logging output type.
Parameters: outputType - The output type either CONSOLE, FILE, or STREAM oflogging output to be removed. See constants above. Parameters: outputDevice - The device associated with the particular outputtype being removed. Null for Console, filename for FILE, the actualoutput stream object for STREAM. |
removeLogTarget | public boolean removeLogTarget(int outputType, String deviceString)(Code) | | Remove a logging output type.
This method is usually used in conjunction with
LoggerController.getLogTargets to
iterate through list to remove items.
Parameters: outputType - - The output type either CONSOLE, FILE, or STREAM oflogging output to be removed. See constants above. Parameters: deviceString - - The device associated with the particular outputtype being removed. Null for Console, filename for FILE,the String identifier name associated with the output stream. |
setLoggingLevel | public void setLoggingLevel(int level)(Code) | | Set the logging level.
Parameters: a - Logger level constant (DEBUG, INFO, etc) See Also: Logger |
|
|