|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--org.apache.catalina.logger.LoggerBase
Convenience base class for Logger implementations. The only
method that must be implemented is log(String msg)
, plus
any property setting and lifecycle methods required for configuration.
フィールドの概要 | |
protected Container |
container
The Container with which this Logger has been associated. |
protected static java.lang.String |
info
The descriptive information about this implementation. |
protected java.beans.PropertyChangeSupport |
support
The property change support for this component. |
protected int |
verbosity
The verbosity level for above which log messages may be filtered. |
インタフェース org.apache.catalina.Logger から継承したフィールド |
DEBUG, ERROR, FATAL, INFORMATION, WARNING |
コンストラクタの概要 | |
LoggerBase()
|
メソッドの概要 | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener to this component. |
Container |
getContainer()
Return the Container with which this Logger has been associated. |
java.lang.String |
getInfo()
Return descriptive information about this Logger implementation and the corresponding version number, in the format <description>/<version> . |
int |
getVerbosity()
Return the verbosity level of this logger. |
void |
log(java.lang.Exception exception,
java.lang.String msg)
Writes the specified exception, and message, to a servlet log file. |
abstract void |
log(java.lang.String msg)
Writes the specified message to a servlet log file, usually an event log. |
void |
log(java.lang.String message,
int verbosity)
Writes the specified message to the servlet log file, usually an event log, if the logger is set to a verbosity level equal to or higher than the specified value for this message. |
void |
log(java.lang.String msg,
java.lang.Throwable throwable)
Writes an explanatory message and a stack trace for a given Throwable exception to the servlet log file. |
void |
log(java.lang.String message,
java.lang.Throwable throwable,
int verbosity)
Writes the specified message and exception to the servlet log file, usually an event log, if the logger is set to a verbosity level equal to or higher than the specified value for this message. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a property change listener from this component. |
void |
setContainer(Container container)
Set the Container with which this Logger has been associated. |
void |
setVerbosity(int verbosity)
Set the verbosity level of this logger. |
void |
setVerbosityLevel(java.lang.String verbosity)
Set the verbosity level of this logger. |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
protected Container container
protected static final java.lang.String info
protected java.beans.PropertyChangeSupport support
protected int verbosity
コンストラクタの詳細 |
public LoggerBase()
メソッドの詳細 |
public Container getContainer()
Logger
内の getContainer
public void setContainer(Container container)
Logger
内の setContainer
container
- The associated Containerpublic java.lang.String getInfo()
<description>/<version>
.Logger
内の getInfo
public int getVerbosity()
Logger
内の getVerbosity
public void setVerbosity(int verbosity)
Logger
内の setVerbosity
verbosity
- The new verbosity levelpublic void setVerbosityLevel(java.lang.String verbosity)
verbosityLevel
- The new verbosity level, as a stringpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Logger
内の addPropertyChangeListener
listener
- The listener to addpublic abstract void log(java.lang.String msg)
Logger
内の log
message
- A String
specifying the message to be
written to the log filepublic void log(java.lang.Exception exception, java.lang.String msg)
log(msg, exception)
instead. This method is deprecated
in the ServletContext interface, but not deprecated here to avoid
many useless compiler warnings. This message will be logged
unconditionally.Logger
内の log
exception
- An Exception
to be reportedmsg
- The associated message stringpublic void log(java.lang.String msg, java.lang.Throwable throwable)
Throwable
exception to the servlet log file. The name
and type of the servlet log file is specific to the servlet container,
usually an event log. This message will be logged unconditionally.Logger
内の log
msg
- A String
that describes the error or
exceptionthrowable
- The Throwable
error or exceptionpublic void log(java.lang.String message, int verbosity)
Logger
内の log
message
- A String
specifying the message to be
written to the log fileverbosity
- Verbosity level of this messagepublic void log(java.lang.String message, java.lang.Throwable throwable, int verbosity)
Logger
内の log
message
- A String
that describes the error or
exceptionthrowable
- The Throwable
error or exceptionverbosity
- Verbosity level of this messagepublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Logger
内の removePropertyChangeListener
listener
- The listener to remove
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |