org.aitools.programd.logging
Class DBChatLogLayout

java.lang.Object
  extended by org.apache.log4j.Layout
      extended by org.apache.log4j.SimpleLayout
          extended by org.aitools.programd.logging.DBChatLogLayout
All Implemented Interfaces:
org.apache.log4j.spi.OptionHandler

public class DBChatLogLayout
extends org.apache.log4j.SimpleLayout

Since:
4.6
Author:
Noel Bush

Field Summary
private static java.lang.String ENC_UTF8
          The string ""utf-8"" (for character encoding conversion).
 
Fields inherited from class org.apache.log4j.Layout
LINE_SEP, LINE_SEP_LEN
 
Constructor Summary
DBChatLogLayout()
          Creates a new SimpleFormatter with the given Core settings.
 
Method Summary
 java.lang.String format(ChatLogEvent event)
           
 java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
          We insist that the event be a ChatLogEvent.
 
Methods inherited from class org.apache.log4j.SimpleLayout
activateOptions, ignoresThrowable
 
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

ENC_UTF8

private static final java.lang.String ENC_UTF8
The string ""utf-8"" (for character encoding conversion).

See Also:
Constant Field Values
Constructor Detail

DBChatLogLayout

public DBChatLogLayout()
Creates a new SimpleFormatter with the given Core settings.

Method Detail

format

public java.lang.String format(org.apache.log4j.spi.LoggingEvent event)
We insist that the event be a ChatLogEvent.

Overrides:
format in class org.apache.log4j.SimpleLayout
Parameters:
event - the ChatLogEvent to format
Returns:
the result of formatting the given ChatLogEvent
Throws:
java.lang.IllegalArgumentException - if the record is not a ChatLogEvent

format

public java.lang.String format(ChatLogEvent event)
Parameters:
event - the ChatLogEvent to format
Returns:
the result of formatting the given ChatLogEvent