papertrail

package
v0.0.0-...-fe632b3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger is a concrete type of LoggerInterface which collects and ships logs to Papertrail

func (*Logger) Close

func (p *Logger) Close() error

Close - closes the Logger instance

func (*Logger) Log

func (p *Logger) Log(msg *logentry.Instance) error

Log method receives log messages

type LoggerInterface

type LoggerInterface interface {
	Log(*logentry.Instance) error
	Close() error
}

LoggerInterface is the interface for all Papertrail logger types

func NewLogger

func NewLogger(paperTrailURL string, retention time.Duration, logConfigs map[string]*config.Params_LogInfo,
	env adapter.Env) (LoggerInterface, error)

NewLogger does some ground work and returns an instance of LoggerInterface

Jump to

Keyboard shortcuts

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