system

package module
v0.0.0-...-b1156f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeDefault

func MakeDefault() send.Sender

MakeDefaultSystem constructs a default logger that pushes to systemd on platforms where that's available and standard output otherwise.

func MakeLocalSyslog

func MakeLocalSyslog() send.Sender

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

func MakeSyslogSender(network, raddr string) send.Sender

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

func MakeSystemdSender() send.Sender

MakeSystemdSender creates a Sender object that writes log messages to the systemd 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL