log

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: MIT Imports: 8 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
}

type Logger

type Logger struct {
	*logrus.Logger
}

func New

func New(opts ...Option) *Logger

func (*Logger) WithError added in v1.6.0

func (l *Logger) WithError(err error) *logrus.Entry

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