loggo-syslog: github.com/wolfeidau/loggo-syslog Index | Files

package lsyslog

import "github.com/wolfeidau/loggo-syslog"

Index

Package Files

version.go writer_syslog.go

Constants

const Version = "1.0.1"

The main version number that is being run at the moment.

func DefaultFormatter Uses

func DefaultFormatter(entry loggo.Entry) string

Format returns the parameters separated by spaces except for filename and line which are separated by a colon.

func NewDefaultSyslogWriter Uses

func NewDefaultSyslogWriter(level loggo.Level, tag, facility string) loggo.Writer

NewDefaultSyslogWriter returns a new writer that writes log messages to syslog in a simple format tailored for syslog. Note this defaults to using LOCAL7.

func NewSyslogWriter Uses

func NewSyslogWriter(p gsyslog.Priority, facility, tag string) loggo.Writer

NewSyslogWriter returns a new writer that writes log messages to syslog in a simple format tailored for syslog

type Formatter Uses

type Formatter func(loggo.Entry) string

Package lsyslog imports 5 packages (graph) and is imported by 3 packages. Updated 2016-11-28. Refresh now. Tools for package owners.