Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeDefault ¶
MakeDefaultSystem constructs a default logger that pushes to systemd on platforms where that's available and standard output otherwise.
func MakeLocalSyslog ¶
MakeLocalSyslog is a constructor for creating the same kind of Sender instance as NewSyslogLogger, except connecting directly to the local syslog service. If there is no local syslog service, or there are issues connecting to it, writes logging messages to standard error. Pass to Journaler.SetSender or call SetName before using.
func MakeSyslogSender ¶
MakeSyslogSender constructs a minimal and unconfigured logger that sends all log message over a socket to a syslog instance at the specified address. If no connection can be made, the
func MakeSystemdSender ¶
MakeSystemdSender creates a Sender object that writes log messages to the sysemd journal service directly. If such a service does not exist on the current system, returns a sender that writes all messages to standard output.
Types ¶
This section is empty.