logger

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Empty

type Empty struct{}

func (Empty) Debug

func (v Empty) Debug(args ...interface{})

func (Empty) Debugf

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

func (Empty) Error

func (v Empty) Error(args ...interface{})

func (Empty) Errorf

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

func (Empty) Info

func (v Empty) Info(args ...interface{})

func (Empty) Infof

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

func (Empty) Warn

func (v Empty) Warn(args ...interface{})

func (Empty) Warnf

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

type Level

type Level int

type Log

type Log interface {
	Debug(args ...interface{})
	Debugf(args ...interface{})
	Info(args ...interface{})
	Infof(args ...interface{})
	Warn(args ...interface{})
	Warnf(args ...interface{})
	Error(args ...interface{})
	Errorf(args ...interface{})
}

type Logger

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

func New

func New(level int) *Logger

func (*Logger) Debug

func (l *Logger) Debug(args ...interface{})

func (*Logger) Debugf

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

func (*Logger) EnableFileInfo

func (l *Logger) EnableFileInfo(skip int) *Logger

func (*Logger) Error

func (l *Logger) Error(args ...interface{})

func (*Logger) Errorf

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

func (*Logger) Fatal

func (l *Logger) Fatal(args ...interface{})

func (*Logger) Fatalf

func (l *Logger) Fatalf(format string, args ...interface{})

func (*Logger) Info

func (l *Logger) Info(args ...interface{})

func (*Logger) Infof

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

func (*Logger) Panic

func (l *Logger) Panic(args ...interface{})

func (*Logger) Panicf

func (l *Logger) Panicf(format string, args ...interface{})

func (*Logger) SetLevel

func (l *Logger) SetLevel(level int)

func (*Logger) V

func (l *Logger) V(level Level) Verbose

func (*Logger) Warn

func (l *Logger) Warn(args ...interface{})

func (*Logger) Warnf

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

type Logrus

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

Verbose is a boolean type that implements Infof (like Printf) etc.

func (Logrus) Debug

func (v Logrus) Debug(args ...interface{})

func (Logrus) Debugf

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

func (Logrus) Error

func (v Logrus) Error(args ...interface{})

func (Logrus) Errorf

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

func (Logrus) Info

func (v Logrus) Info(args ...interface{})

func (Logrus) Infof

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

func (Logrus) Warn

func (v Logrus) Warn(args ...interface{})

func (Logrus) Warnf

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

type Verbose

type Verbose interface {
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Warn(args ...interface{})
	Warnf(format string, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

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