logger

package
v1.0.86 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: BSD-2-Clause Imports: 8 Imported by: 40

Documentation

Index

Constants

View Source
const (
	DELTA_TIMESTAMP_SECS = 60
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Level  Level
	Path   string
	Append bool
	Syslog string
	Tag    string
}

The configuration for the logger

func (Config) Open

func (config Config) Open(_ gopi.Logger) (gopi.Driver, error)

Open a logger

type Level

type Level uint

The level of the logging required

const (
	LOG_ANY Level = iota
	LOG_DEBUG2
	LOG_DEBUG
	LOG_INFO
	LOG_WARN
	LOG_ERROR
	LOG_FATAL
	LOG_NONE
)

func (Level) String

func (l Level) String() string

Jump to

Keyboard shortcuts

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