java.lang.Object
org.apache.log4j.Layout
de.hunsicker.jalopy.plugin.SwingLayout
- All Implemented Interfaces:
- org.apache.log4j.spi.OptionHandler
- final class SwingLayout
- extends org.apache.log4j.Layout
A custom Log4J layout which reformats muliple line messages and takes care of
throwable information.
- Version:
- $Revision: 1.1 $
|
Constructor Summary |
SwingLayout()
Creates a new SwingLayout object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_STRING_ARRAY
private static final java.lang.String[] EMPTY_STRING_ARRAY
MAX_LINE_LENGTH
private static final int MAX_LINE_LENGTH
- See Also:
- Constant Field Values
_settings
private de.hunsicker.jalopy.storage.Convention _settings
SwingLayout
public SwingLayout()
- Creates a new SwingLayout object.
activateOptions
public void activateOptions()
- Activate the options that were previously set with calls to option setters.
Actaally does nothing as the option setters are deprecated and no longer used.
format
public java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
- Returns the log statement. Adds throwable information if available and enabled in
the code convention. Multiple line messages will be reformatted to fit into the
given maximal line length.
ignoresThrowable
public boolean ignoresThrowable()
- Indicates whether throwable information should be included in the output.