syslog

package
v0.0.0-...-984eaab Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package syslog wraps log/syslog package and logging avaiable globally.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(m string) error

Alert logs an alert message to syslog

func Close

func Close() error

Close closes the connection to syslog

func Crit

func Crit(m string) error

Crit logs a critical message to syslog

func Debug

func Debug(m string) error

Debug logs a debug message to syslog

func Emerg

func Emerg(m string) error

Emerg logs an emergency message to syslog

func Err

func Err(m string) error

Err logs an error message to syslog

func Info

func Info(m string) error

Info logs an info message to syslog

func Notice

func Notice(m string) error

Notice logs a notice message to syslog

func SetLogger

func SetLogger(network string, host string, port string,
	priority syslog.Priority, tag string) error

SetLogger attemps to connect to syslog with the given parameters

func Warning

func Warning(m string) error

Warning logs a warning message to syslog

Types

This section is empty.

Jump to

Keyboard shortcuts

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