lsyslog

package module
v1.0.2-0...-55c3594 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2016 License: MIT Imports: 5 Imported by: 5

README

loggo-syslog

This is a custom writer for loggo which writes to syslog using the handy go-syslog wrapper provided by hashicorp.

Licence

Copyright (c) 2014 Mark Wolfe Licensed under the MIT license.

Documentation

Index

Constants

View Source
const Version = "1.0.1"

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

Variables

This section is empty.

Functions

func DefaultFormatter

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

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

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

Types

type Formatter

type Formatter func(loggo.Entry) string

Jump to

Keyboard shortcuts

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