vibe.d beta banner
get vibe.d

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

Function SyslogLogger.this

Construct a SyslogLogger.

this (
  OutputStream stream,
  SyslogFacility facility,
  string appName = null,
  string hostName = hostName()

The log messages are sent to the given OutputStream stream using the given Facility facility.Optionally the appName and hostName can be set. The appName defaults to null. The hostName defaults to hostName().

Note that the passed stream's write function must not use logging with a level for that this Logger's acceptsLevel returns true. Because this Logger uses the stream's write function when it logs and would hence log forevermore.


Sönke Ludwig


© 2012-2014 Sönke Ludwig


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