Documentation ¶
Overview ¶
syslog is a simple io.Writer that writes to syslog over a network connection. The difference with the buildin syslog package is that it will detect the priority based on [ERR] [WARN] or INFO tags.
The main usage of this package is to import it for the side effects cause by setting the SYSLOG environment variable. Setting this variable will change the default writer of the log package.
SYSLOG should be set to network:address, for example udp:localhost:514
Index ¶
Constants ¶
View Source
const ( ALERT = 1 ERROR = 3 WARNING = 4 INFO = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.