syslog

package
v0.0.0-...-9ab7893 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2013 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package syslog provides a syslog plugin for go-logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyslogOutputter

type SyslogOutputter struct {
	Writer    *syslog.Writer
	Formatter logging.Formatter
}

SyslogOutputter implements Outputter by logging to the system log daemon.

func NewSyslog

func NewSyslog(format logging.Formatter, tag string) (*SyslogOutputter, error)

Creates a new SyslogOutputter with a name (tag) and the USER facility.

func NewSyslogFacility

func NewSyslogFacility(format logging.Formatter, tag string, facility syslog.Priority) (*SyslogOutputter, error)

Creates a new SyslogOutputter with a custom facility (see syslog.Priority).

func (SyslogOutputter) Output

func (s SyslogOutputter) Output(msg *logging.Message)

Implements Outputter.

Jump to

Keyboard shortcuts

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