Inheritance diagram for SocketAppender:
Public Member Functions | |
this (Layout layout, InternetAddress address) | |
~this () | |
void | setAddress (InternetAddress address) |
uint | getMask () |
char[] | getName () |
void | append (Event event) |
void | close () |
Static Public Member Functions | |
static | this () |
Private Member Functions | |
void | setLayout (Layout layout) |
Layout | getLayout () |
void | setNext (Appender next) |
Appender | getNext () |
Static Private Member Functions | |
static uint | nextMask () |
Private Attributes | |
IBuffer | buffer |
Static Private Attributes | |
static uint | mask |
Definition at line 61 of file SocketAppender.d.
|
Ensure the socket is closed when we're GC'd Definition at line 99 of file SocketAppender.d. References close(). |
|
Get a unique fingerprint for this class Reimplemented from Appender. Definition at line 76 of file SocketAppender.d. References mask, and Appender::nextMask(). |
|
Create with the given Layout and address Definition at line 87 of file SocketAppender.d. References setAddress(), and Appender::setLayout(). |
|
Set the destination address and port for this socket Definition at line 110 of file SocketAppender.d. References buffer, close(), Socket::connect(), SocketConduit::createBuffer(), Exception, printf(), SocketConduit, version, and x. Referenced by this(). |
|
Return the fingerprint for this class Reimplemented from Appender. Definition at line 141 of file SocketAppender.d. References mask. |
|
Return the name of this class Reimplemented from Appender. Definition at line 152 of file SocketAppender.d. |
|
Append an event to the output. Reimplemented from Appender. Definition at line 163 of file SocketAppender.d. References IBuffer::append(), buffer, Layout::content(), IBuffer::flush(), Layout::footer(), Layout::header(), and version. |
|
Close the socket associated with this Appender Reimplemented from Appender. Definition at line 194 of file SocketAppender.d. References buffer, IResource::close(), IBuffer::getConduit(), and version. Referenced by setAddress(), and ~this(). |
|
Static method to return a mask for identifying the Appender. Each Appender class should have a unique fingerprint so that we can figure out which ones have been invoked for a given event. A bitmask is a simple an efficient way to do that. Definition at line 106 of file Appender.d. Referenced by this(), and NullAppender::this(). |
|
Set the current layout to be that of the argument. Definition at line 121 of file Appender.d. Referenced by this(), and NullAppender::this(). |
|
Return the current Layout Definition at line 132 of file Appender.d. References Appender::layout. |
|
Attach another appender to this one Definition at line 143 of file Appender.d. Referenced by LoggerInstance::addAppender(). |
|
Return the next appender in the list Definition at line 154 of file Appender.d. References Appender::next. Referenced by LoggerInstance::append(). |
|
Definition at line 63 of file SocketAppender.d. |
|
Definition at line 65 of file SocketAppender.d. Referenced by append(), close(), and setAddress(). |