log

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, args ...interface{})

func Errorf

func Errorf(format string, args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func Warnf

func Warnf(format string, args ...interface{})

func WithEventlog

func WithEventlog(name string)

func WithFilesystem

func WithFilesystem(path string)

func WithLevel

func WithLevel(level string)

func WithMail

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

func WithSyslog

func WithSyslog(address string)

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
}

func WithFields

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

type Logger

type Logger struct {
	*logrus.Logger
}

func New

func New(level string) *Logger

func (*Logger) WithFields

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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