Back to / daemon / logger / syslog

package syslog

Latest Go to latest
Published: Feb 8, 2017 | License: Apache-2.0 | Module:


Package syslog provides the logdriver for forwarding server logs to syslog endpoints.


func New

func New(ctx logger.Context) (logger.Logger, error)

New creates a syslog logger using the configuration passed in on the context. Supported context configuration variables are syslog-address, syslog-facility, syslog-format.

func ValidateLogOpt

func ValidateLogOpt(cfg map[string]string) error

ValidateLogOpt looks for syslog specific log options syslog-address, syslog-facility.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier