| Modifier and Type | Field and Description |
|---|---|
protected Container |
container
The Container with which this Logger has been associated.
|
protected PropertyChangeSupport |
support
The property change support for this component.
|
| Constructor and Description |
|---|
IASLogger(Logger logger)
Construct a new instance of this class, that uses the specified
logger instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener to this component.
|
Container |
getContainer()
Return the Container with which this Logger has been associated.
|
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(Exception exception,
String msg)
Writes the specified exception, and message, to a servlet log file.
|
void |
log(String msg)
Writes the specified message to a servlet log file, usually an event
log.
|
void |
log(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(String msg,
Throwable throwable)
Writes an explanatory message and a stack trace for a given
Throwable exception to the servlet log file. |
void |
log(String message,
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(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)
Logger interface method (ignored)
|
protected void |
write(String msg,
int verbosity)
Logs the message to the JDK 1.4 logger that handles all log
messages for the iPlanet Application Server.
|
protected void |
write(String msg,
Throwable throwable,
int verbosity) |
protected Container container
protected PropertyChangeSupport support
public IASLogger(Logger logger)
logger - The logger to send log messages toprotected void write(String msg, int verbosity)
public Container getContainer()
getContainer in interface Loggerpublic void setContainer(Container container)
setContainer in interface Loggercontainer - The associated Containerpublic String getInfo()
<description>/<version>.public int getVerbosity()
getVerbosity in interface Loggerpublic void setVerbosity(int verbosity)
setVerbosity in interface Loggerverbosity - The new verbosity levelpublic void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface Loggerlistener - The listener to addpublic void log(String msg)
public void log(Exception exception, 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.public void log(String msg, 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.public void log(String message, int verbosity)
public void log(String message, Throwable throwable, int verbosity)
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface Loggerlistener - The listener to removeCopyright © 2017. All rights reserved.