lion: Index | Files

package sysloglion

import ""

Package sysloglion defines functionality for integration with syslog.


Package Files

pusher.go syslog.go


var (
    // DefaultTextMarshaller is the default text Marshaller for syslog.
    DefaultTextMarshaller = lion.NewTextMarshaller(

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.