logger

package
v0.0.0-...-e2627ae Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRsyslogBackend

func AddRsyslogBackend(host string) error

Add logging to stdout with rsyslog

Types

type RSyslogBackend

type RSyslogBackend struct {
	Writer *syslog.Writer
}

RSyslog backend for logging

func NewRSyslogBackend

func NewRSyslogBackend(host string, priority syslog.Priority, tag string) (b *RSyslogBackend, err error)

Create a new RSyslog backend

func (*RSyslogBackend) Log

func (b *RSyslogBackend) Log(level logging.Level, calldepth int, rec *logging.Record) error

implements the Backend interface method

Jump to

Keyboard shortcuts

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