log

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})

	WithFields(fields map[string]interface{}) Entry

	SystemErr(err error)
}

type Logger

type Logger struct {
	*logrus.Logger
}

func New

func New(opts []Option) *Logger

func (*Logger) SystemErr added in v1.3.5

func (l *Logger) SystemErr(err error)

func (*Logger) WithFields

func (l *Logger) WithFields(fields map[string]interface{}) Entry

type Option added in v1.3.0

type Option func(*Logger)

func WithEventlog

func WithEventlog(name string) Option

func WithFilesystem

func WithFilesystem(path string) Option

func WithLevel

func WithLevel(level string) Option

func WithMail

func WithMail(appname, address, sender, receiver, username, password string) Option

func WithSyslog

func WithSyslog(address string) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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