papertrail

package
v0.0.0-...-00cc4c7 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2015 License: BSD-3-Clause Imports: 3 Imported by: 0

README

github.com/vektra/addons/papertrail

Input

Plain text TCP, which must be opted into in the Papertrail UI.

Format

Syslog RFC 5424 inspired

Papertrail supports and automatically detects syslog format messages. Syslog is documented as RFC 5424 and RFC 3164. We send the logs using the RFC 5424 style.

In Papertrail's Event viewer, the sender name and program/component name become clickable orange and blue links to see surrounding context.

For example, the message:

<22>1 2014-06-18T09:56:21Z sendername programname - - - the log message

Is displayed like this in Papertrail's log viewer:

Jun 18 9:56:21 sendername programname: the log message

For more information see Configuring remote syslog from embedded or proprietary systems.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(address string, ssl bool) *tcplog.Logger

Types

type PapertrailFormatter

type PapertrailFormatter struct{}

func (*PapertrailFormatter) Format

func (pf *PapertrailFormatter) Format(m *cypress.Message) ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL