logging

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Levels = []logutils.LogLevel{"TRACE", "DEBUG", "INFO", "WARN", "ERR"}

Functions

func NewLogFilter

func NewLogFilter() *logutils.LevelFilter

func Setup

func Setup(config *Config) error

func ValidateLevelFilter

func ValidateLevelFilter(min logutils.LogLevel, filter *logutils.LevelFilter) bool

Types

type Config

type Config struct {
	Name string `json:"name"`

	Level string `json:"level"`

	Syslog         bool   `json:"syslog"`
	SyslogFacility string `json:"syslog_facility"`

	Writer io.Writer `json:"-"`
}

type SyslogWrapper

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

func (*SyslogWrapper) Write

func (s *SyslogWrapper) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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