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

XmlLayout Class Reference

Inheritance diagram for XmlLayout:

Layout List of all members.

Public Member Functions

char[] header (Event event)
char[] footer (Event event)

Private Member Functions

char[] content (Event event)
final char[] levelString (Event event)
char[] ultoa (char[] s, ulong l)

Detailed Description

A layout with XML output conforming to Log4J specs.

Definition at line 53 of file XmlLayout.d.


Member Function Documentation

char [] header Event  event  )  [inline]
 

Format message attributes into an output buffer and return the populated portion.

Reimplemented from Layout.

Definition at line 62 of file XmlLayout.d.

References Event::append(), Event::getContent(), Event::getEpochMilliSeconds(), Event::getName(), and Layout::levelString().

char [] footer Event  event  )  [inline]
 

Format message attributes into an output buffer and return the populated portion.

Reimplemented from Layout.

Definition at line 85 of file XmlLayout.d.

References Event::append(), Hierarchy::getAddress(), Event::getContent(), Event::getHierarchy(), Hierarchy::getName(), and Event::scratch.

char [] content Event  event  )  [inline, inherited]
 

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, inherited]
 

Return a text string representing the event level.

Definition at line 92 of file Layout.d.

References Event::getLevel().

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

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

Convert a time value (in milliseconds) to ascii

Definition at line 103 of file Layout.d.


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