| java.lang.Object com.jcorporate.expresso.core.controller.ControllerInstallLog
ControllerInstallLog | public class ControllerInstallLog implements InstallLog(Code) | | This is an implementation of the IntallLog interface that is
useful when running installation systems inside controllers. It renders the
log messages as a series of outputs with the following rules:
- For each output, if an exception was logged, there are two nested outputs:
One named 'errorMessage' the other 'stackTrace' which contain the exception
message and the exception stack trace
- For each output, a 'color' attribute is set. This attribute can be
used at render time to render the font color of the output. Of course, a JSP
can use different color schemes, but the concept is to provide highest
performance possible
first before using the log or
author: Michael Rimov See Also: com.jcorporate.expresso.kernel.InstallLog See Also: com.jcorporate.expresso.kernel.ConsoleInstallLog |
ControllerInstallLog | public ControllerInstallLog(ControllerResponse theResponse)(Code) | | Constructs a ControllerInstallLog and sets the ControllerResponse that
we will be using to add the outputs to.
Parameters: theResponse - |
ControllerInstallLog | protected ControllerInstallLog()(Code) | | The point is that we don't want the default constructor used.
|
addNestedOutputs | protected void addNestedOutputs(Output o, Throwable error)(Code) | | Adds the exceptions as nested outputs to the original log message
Parameters: o - the original log message Parameters: error - the exception to log as well. |
addOutput | protected void addOutput(Output logMessage)(Code) | | Helper method that adds the output to either the parent block
or the controller response, depending on what was needed
Parameters: logMessage - the output to add |
debug | public void debug(String message)(Code) | | Log a debug message
Parameters: message - The message to log. |
error | public void error(String message, Throwable error)(Code) | | Log an error exception
Parameters: message - The message to log. Parameters: error - The Throwable object to log |
error | public void error(String message)(Code) | | Log an error message
Parameters: message - The message to log. |
info | public void info(String message)(Code) | | Log an info message
Parameters: message - The message to log. |
setParentBlock | public void setParentBlock(Block b)(Code) | | Optional method. If you want the outputs to be added to a block rather
than the root of the ControllerResponse then call setParentBlock() before
usage
Parameters: b - the block you wish to use. |
warn | public void warn(String message)(Code) | | Log a warning message
Parameters: message - The message to log. |
warn | public void warn(String message, Throwable error)(Code) | | Log a warning exception
Parameters: message - The message to log. Parameters: error - The Throwable object to log |
|
|