logspout: github.com/gliderlabs/logspout/adapters/syslog Index | Files

package syslog

import "github.com/gliderlabs/logspout/adapters/syslog"


Package Files


func NewSyslogAdapter Uses

func NewSyslogAdapter(route *router.Route) (router.LogAdapter, error)

NewSyslogAdapter returnas a configured syslog.Adapter

type Adapter Uses

type Adapter struct {
    // contains filtered or unexported fields

Adapter streams log output to a connection in the Syslog format

func (*Adapter) Stream Uses

func (a *Adapter) Stream(logstream chan *router.Message)

Stream sends log data to a connection

type Message Uses

type Message struct {

Message extends router.Message for the syslog standard

func (*Message) ContainerName Uses

func (m *Message) ContainerName() string

ContainerName returns the message's container name

func (*Message) Hostname Uses

func (m *Message) Hostname() string

Hostname returns the os hostname

func (*Message) Priority Uses

func (m *Message) Priority() syslog.Priority

Priority returns a syslog.Priority based on the message source

func (*Message) Render Uses

func (m *Message) Render(tmpl *template.Template) ([]byte, error)

Render transforms the log message using the Syslog template

func (*Message) Timestamp Uses

func (m *Message) Timestamp() string

Timestamp returns the message's syslog formatted timestamp

Package syslog imports 14 packages (graph) and is imported by 69 packages. Updated 2018-02-09. Refresh now. Tools for package owners.