Package com.sun.enterprise.web.logger
Class IASLogger
- java.lang.Object
-
- com.sun.enterprise.web.logger.IASLogger
-
-
Field Summary
Fields Modifier and Type Field Description protected Container
container
The Container with which this Logger has been associated.protected PropertyChangeSupport
support
The property change support for this component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 givenThrowable
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)
-
-
-
Field Detail
-
container
protected Container container
The Container with which this Logger has been associated.
-
support
protected PropertyChangeSupport support
The property change support for this component.
-
-
Constructor Detail
-
IASLogger
public IASLogger(Logger logger)
Construct a new instance of this class, that uses the specified logger instance.- Parameters:
logger
- The logger to send log messages to
-
-
Method Detail
-
write
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.
-
getContainer
public Container getContainer()
Return the Container with which this Logger has been associated.- Specified by:
getContainer
in interfaceLogger
-
setContainer
public void setContainer(Container container)
Set the Container with which this Logger has been associated.- Specified by:
setContainer
in interfaceLogger
- Parameters:
container
- The associated Container
-
getInfo
public String getInfo()
Return descriptive information about this Logger implementation and the corresponding version number, in the format<description>/<version>
.
-
getVerbosity
public int getVerbosity()
Logger interface method (ignored)- Specified by:
getVerbosity
in interfaceLogger
-
setVerbosity
public void setVerbosity(int verbosity)
Logger interface method (ignored)- Specified by:
setVerbosity
in interfaceLogger
- Parameters:
verbosity
- The new verbosity level
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener to this component.- Specified by:
addPropertyChangeListener
in interfaceLogger
- Parameters:
listener
- The listener to add
-
log
public void log(String msg)
Writes the specified message to a servlet log file, usually an event log. The name and type of the servlet log is specific to the servlet container.
-
log
public void log(Exception exception, String msg)
Writes the specified exception, and message, to a servlet log file. The implementation of this method should calllog(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
public void log(String msg, Throwable throwable)
Writes an explanatory message and a stack trace for a givenThrowable
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
public 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.
-
log
public 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.
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener from this component.- Specified by:
removePropertyChangeListener
in interfaceLogger
- Parameters:
listener
- The listener to remove
-
-