|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.enterprise.web.logger.CatalinaLogger
public final class CatalinaLogger
This is an adapter of java.util.logging.Logger to org.apache.catalina.Logger.
| Field Summary | |
|---|---|
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. |
| Fields inherited from interface org.apache.catalina.Logger |
|---|
DEBUG, ERROR, FATAL, INFORMATION, WARNING |
| Constructor Summary | |
|---|---|
CatalinaLogger(java.util.logging.Logger logger)
Construct a new instance of this class, that uses the specified logger instance. |
|
| Method Summary | |
|---|---|
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()
Logger interface method (ignored) |
void |
log(java.lang.Exception exception,
java.lang.String msg)
Writes the specified exception, and message, to a servlet log file. |
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 |
setLevel(java.lang.String logLevel)
Set the verbosity level of this logger. |
void |
setVerbosity(int verbosity)
Logger interface method (ignored) |
protected void |
write(java.lang.String msg,
int verbosity)
Logs the given message at the given verbosity level. |
protected void |
write(java.lang.String msg,
java.lang.Throwable throwable,
int verbosity)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Container container
protected static final java.lang.String info
protected java.beans.PropertyChangeSupport support
| Constructor Detail |
|---|
public CatalinaLogger(java.util.logging.Logger logger)
logger - The logger to send log messages to| Method Detail |
|---|
protected void write(java.lang.String msg,
int verbosity)
public void setLevel(java.lang.String logLevel)
logLevel - The new verbosity level, as a stringpublic Container getContainer()
getContainer in interface Loggerpublic void setContainer(Container container)
setContainer in interface Loggercontainer - The associated Containerpublic java.lang.String getInfo()
<description>/<version>.
getInfo in interface Loggerpublic int getVerbosity()
getVerbosity in interface Loggerpublic void setVerbosity(int verbosity)
setVerbosity in interface Loggerverbosity - The new verbosity levelpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener in interface Loggerlistener - The listener to addpublic void log(java.lang.String msg)
log in interface Loggermsg - A String specifying the message to be
written to the log file
public 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.
log in interface Loggerexception - An Exception to be reportedmsg - The associated message string
public 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.
log in interface Loggermsg - A String that describes the error or
exceptionthrowable - The Throwable error or exception
public void log(java.lang.String message,
int verbosity)
log in interface Loggermessage - A String specifying the message to be
written to the log fileverbosity - Verbosity level of this message
public void log(java.lang.String message,
java.lang.Throwable throwable,
int verbosity)
log in interface Loggermessage - A String that describes the error or
exceptionthrowable - The Throwable error or exceptionverbosity - Verbosity level of this messagepublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener in interface Loggerlistener - The listener to remove
protected void write(java.lang.String msg,
java.lang.Throwable throwable,
int verbosity)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||