sysloglion

package
v10.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: Apache-2.0, MIT Imports: 2 Imported by: 0

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