vibe.d beta banner
get vibe.d
0.9.5

Asynchronous I/O that doesn’t get in your way, written in D

Class SyslogLogger

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

class SyslogLogger
  : Logger ;

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

Constructors

NameDescription
this (stream, facility, appName, hostName) Construct a SyslogLogger.

Fields

NameTypeDescription
minLevel LogLevel
multilineLogger boolWhether the logger can handle multiple lines in a single beginLine/endLine.

Methods

NameDescription
beginLine (msg) Logs the given LogLine msg.
endLine ()
put (text)
acceptsLevel (value)
beginLine (line_info) Starts a new log line.
endLine () Finalizes a log line.
log (line) Legacy logging interface relying on dynamic memory allocation.
put (text) Writes part of a log line message.

Enums

NameDescription
Facility Facilities

Standards

Conforms to RFC 5424.

Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.