lion: go.pedge.io/lion/syslog Index | Files

package sysloglion

import "go.pedge.io/lion/syslog"

Package sysloglion defines functionality for integration with syslog.

Index

Package Files

pusher.go syslog.go

Variables

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

func NewPusher Uses

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

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

type PusherOption Uses

type PusherOption func(*pusher)

PusherOption is an option for constructing a new Pusher.

func PusherWithMarshaller Uses

func PusherWithMarshaller(marshaller lion.Marshaller) PusherOption

PusherWithMarshaller uses the Marshaller for the Pusher.

By default, DefaultTextMarshaller is used.

Package sysloglion imports 2 packages (graph) and is imported by 3 packages. Updated 2016-11-06. Refresh now. Tools for package owners.