Categorygithub.com/hashicorp/go-syslog
modulepackage
1.0.0
Repository: https://github.com/hashicorp/go-syslog.git
Documentation: pkg.go.dev

# README

go-syslog

This repository provides a very simple gsyslog package. The point of this package is to allow safe importing of syslog without introducing cross-compilation issues. The stdlib log/syslog cannot be imported on Windows systems, and without conditional compilation this adds complications.

Instead, gsyslog provides a very simple wrapper around log/syslog but returns a runtime error if attempting to initialize on a non Linux or OSX system.

# Functions

DialLogger is used to construct a new Syslogger that establishes connection to remote syslog server.
NewLogger is used to construct a new Syslogger.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

Syslogger interface is used to write log messages to syslog.

# Type aliases

Priority maps to the syslog priority levels.