Expresso 5-6

com.jcorporate.expresso.core.servlet
Class ServletInstallLog

java.lang.Object
  extended bycom.jcorporate.expresso.core.servlet.ServletInstallLog
All Implemented Interfaces:
InstallLog

public class ServletInstallLog
extends Object
implements InstallLog

This is an implementation of the IntallLog interface that is useful when running installation systems inside servlets.

It renders the output to the servlet output stream.

Author:
Michael Rimov
See Also:
InstallLog, ConsoleInstallLog

Constructor Summary
protected ServletInstallLog()
          The point is that we don't want the default constructor used.
  ServletInstallLog(PrintWriter theOutputStream)
          Constructs a ControllerInstallLog and sets the ControllerResponse that we will be using to add the outputs to.
 
Method Summary
 void debug(String message)
          Log a debug message
 void error(String message)
          Log an error message
 void error(String message, Throwable error)
          Log an error exception
 void info(String message)
          Log an info message
 void warn(String message)
          Log a warning message
 void warn(String message, Throwable error)
          Log a warning exception
protected  void writeException(Throwable error)
          Adds the exceptions as nested outputs to the original log message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletInstallLog

public ServletInstallLog(PrintWriter theOutputStream)
                  throws IOException
Constructs a ControllerInstallLog and sets the ControllerResponse that we will be using to add the outputs to.


ServletInstallLog

protected ServletInstallLog()
The point is that we don't want the default constructor used.

Method Detail

debug

public void debug(String message)
Log a debug message

Specified by:
debug in interface InstallLog
Parameters:
message - The message to log.

info

public void info(String message)
Log an info message

Specified by:
info in interface InstallLog
Parameters:
message - The message to log.

warn

public void warn(String message)
Log a warning message

Specified by:
warn in interface InstallLog
Parameters:
message - The message to log.

warn

public void warn(String message,
                 Throwable error)
Log a warning exception

Specified by:
warn in interface InstallLog
Parameters:
message - The message to log.
error - The Throwable object to log

error

public void error(String message,
                  Throwable error)
Log an error exception

Specified by:
error in interface InstallLog
Parameters:
message - The message to log.
error - The Throwable object to log

error

public void error(String message)
Log an error message

Specified by:
error in interface InstallLog
Parameters:
message - The message to log.

writeException

protected void writeException(Throwable error)
Adds the exceptions as nested outputs to the original log message

Parameters:
error - the exception to log as well.

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.