java.lang.Object | |
↳ | org.apache.log4j.lf5.util.LogMonitorAdapter |
LogMonitorAdapter facilitates the usage of the LogMonitor
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | JDK14_LOG_LEVELS | ||||||||||
int | LOG4J_LOG_LEVELS |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a LogRecord to the LogMonitor. | |||||||||||
Gets the default LogLevel for the Adapter. | |||||||||||
Gets the current Severe LogLevel | |||||||||||
Log a message to the Monitor. | |||||||||||
Log a message to the Monitor. | |||||||||||
Log a complete message to the Monitor. | |||||||||||
Log a message to the Monitor. | |||||||||||
Log a message to the Monitor and use the default LogLevel. | |||||||||||
Creates an instance of LogMonitorAdapter using the log levels inticated by the parameter. | |||||||||||
Creates an instance of LogMonitorAdapter using the specified LogLevels. | |||||||||||
Creates an instance of LogMonitorAdapter using the specified LogLevels. | |||||||||||
Set the default log level to be used when logging messages without specifying a LogLevel. | |||||||||||
Set the maximum number of records to be displayed in the monitor | |||||||||||
Sets the Severe LogLevel. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Adds a LogRecord to the LogMonitor.
record | The LogRecord object to be logged in the logging monitor. |
---|
Log a message to the Monitor.
category | The category to be used |
---|---|
level | The log level to apply to the message |
message | The message |
t | The throwable content of the message |
Log a message to the Monitor.
category | The category to be used |
---|---|
level | The log level to apply to the message |
message | The message |
Log a complete message to the Monitor.
category | The category to be used |
---|---|
level | The log level to apply to the message |
message | The message |
t | The throwable content of the message |
NDC | The NDC really only applies to Log4J and the parameter can usually be ignored. |
Log a message to the Monitor.
category | The category to be used |
---|---|
level | The log level to apply to the message |
message | The message |
Log a message to the Monitor and use the default LogLevel.
category | The category to be used |
---|---|
message | The message |
Creates an instance of LogMonitorAdapter using the log levels inticated by the parameter. Log4J and JDK1.4 both have default LogLevels which are set but these levels can be overriden.
loglevels | An integer representing either Log4J or JDK1.4 logging levels |
---|
Creates an instance of LogMonitorAdapter using the specified LogLevels. The first LogLevel in the List is used as the default LogLevel unless changed using the setDefaultLevel method.
userDefinedLevels | A list of user defined LogLevel objects. |
---|
Creates an instance of LogMonitorAdapter using the specified LogLevels. The first LogLevel in the array is used as the default LogLevel unless changed using the setDefaultLevel method.
userDefined | An array of user defined LogLevel objects. |
---|
Set the default log level to be used when logging messages without specifying a LogLevel.
Set the maximum number of records to be displayed in the monitor