Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

de.hunsicker.jalopy.plugin
Class SwingLayout  view SwingLayout download SwingLayout.java

java.lang.Object
  extended byorg.apache.log4j.Layout
      extended byde.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 $

Field Summary
private  de.hunsicker.jalopy.storage.Convention _settings
           
private static java.lang.String[] EMPTY_STRING_ARRAY
           
private static int MAX_LINE_LENGTH
           
 
Fields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN
 
Constructor Summary
SwingLayout()
          Creates a new SwingLayout object.
 
Method Summary
 void activateOptions()
          Activate the options that were previously set with calls to option setters.
 java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
          Returns the log statement.
 boolean ignoresThrowable()
          Indicates whether throwable information should be included in the output.
 
Methods inherited from class org.apache.log4j.Layout
getContentType, getFooter, getHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SwingLayout

public SwingLayout()
Creates a new SwingLayout object.

Method Detail

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.