SyslogLogger

A logger that logs in syslog format according to RFC 5424.

Messages can be logged to files (via file streams) or over the network (via TCP or SSL streams).

Constructors

this
this(OutputStream stream, Facility facility, string appName, string hostName)

Construct a SyslogLogger.

Members

Aliases

Facility
deprecated alias Facility = SyslogFacility
Undocumented in source.

Functions

beginLine
void beginLine(LogLine msg)

Logs the given LogLine msg.

endLine
void endLine()
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(const(char)[] text)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Logger

minLevel
LogLevel minLevel;
Undocumented in source.
multilineLogger
bool multilineLogger;

Whether the logger can handle multiple lines in a single beginLine/endLine.

acceptsLevel
bool acceptsLevel(LogLevel value)
Undocumented in source. Be warned that the author may not have intended to support it.
log
void log(LogLine line)

Legacy logging interface relying on dynamic memory allocation.

beginLine
void beginLine(LogLine line_info)

Starts a new log line.

put
void put(const(char)[] text)

Writes part of a log line message.

endLine
void endLine()

Finalizes a log line.

Meta

Standards

Conforms to RFC 5424.