sysloglion

package
v0.0.0-...-304b2f4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package sysloglion defines functionality for integration with syslog.

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultTextMarshaller is the default text Marshaller for syslog.
	DefaultTextMarshaller = lion.NewTextMarshaller(
		lion.TextMarshallerDisableTime(),
		lion.TextMarshallerDisableLevel(),
	)
)

Functions

func NewPusher

func NewPusher(writer *syslog.Writer, options ...PusherOption) lion.Pusher

NewPusher creates a new lion.Pusher that logs using syslog.

Types

type PusherOption

type PusherOption func(*pusher)

PusherOption is an option for constructing a new Pusher.

func PusherWithMarshaller

func PusherWithMarshaller(marshaller lion.Marshaller) PusherOption

PusherWithMarshaller uses the Marshaller for the Pusher.

By default, DefaultTextMarshaller is used.

Jump to

Keyboard shortcuts

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