Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Layout Class Reference

Inheritance diagram for Layout:

DateLayout SimpleLayout SimpleTimerLayout XmlLayout List of all members.

Public Member Functions

char[] header (Event event)
char[] footer (Event event)
char[] content (Event event)
char[] ultoa (char[] s, ulong l)

Protected Member Functions

final char[] levelString (Event event)

Private Attributes

import mango log Logger

Detailed Description

Base class for all Layout instances

Definition at line 49 of file Layout.d.


Member Function Documentation

char [] header Event  event  ) 
 

Subclasses should implement this method to perform the formatting of each message header

Reimplemented in DateLayout, SimpleLayout, SimpleTimerLayout, and XmlLayout.

Referenced by SocketAppender::append(), VersionMango::RollingFileAppender::append(), NullAppender::append(), VersionMango::FileAppender::append(), and ConsoleAppender::append().

char [] footer Event  event  )  [inline]
 

Subclasses should implement this method to perform the formatting of each message footer

Reimplemented in XmlLayout.

Definition at line 69 of file Layout.d.

Referenced by SocketAppender::append(), VersionMango::RollingFileAppender::append(), NullAppender::append(), VersionMango::FileAppender::append(), and ConsoleAppender::append().

char [] content Event  event  )  [inline]
 

Subclasses should implement this method to perform the formatting of the actual message content.

Definition at line 81 of file Layout.d.

References Event::toString().

Referenced by SocketAppender::append(), VersionMango::RollingFileAppender::append(), NullAppender::append(), VersionMango::FileAppender::append(), and ConsoleAppender::append().

final char [] levelString Event  event  )  [inline, protected]
 

Return a text string representing the event level.

Definition at line 92 of file Layout.d.

References Event::getLevel().

Referenced by XmlLayout::header(), and DateLayout::header().

char [] ultoa char[]  s,
ulong  l
[inline]
 

Convert a time value (in milliseconds) to ascii

Definition at line 103 of file Layout.d.


Member Data Documentation

import mango log Logger [private]
 

Definition at line 51 of file Layout.d.


The documentation for this class was generated from the following file:
Generated on Tue Jan 25 21:18:37 2005 for Mango by doxygen 1.3.6