protolog_syslog

package
v0.0.0-...-146e201 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package protolog_syslog 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 = protolog.NewTextMarshaller(
		protolog.TextMarshallerDisableTime(),
		protolog.TextMarshallerDisableLevel(),
	)
)

Functions

func NewPusher

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

NewPusher creates a new protolog.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 protolog.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