Documentation ¶
Index ¶
Constants ¶
View Source
const ( Llongfile uint32 = 1 << iota Lshortfile )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewBackend ¶
func NewBackend(w io.Writer, opts ...BackendOption) *Backend
type BackendOption ¶
type BackendOption func(b *Backend)
func WithFlags ¶
func WithFlags(flags uint32) BackendOption
type Logger ¶
type Logger interface { Tracef(format string, params ...interface{}) Debugf(format string, params ...interface{}) Infof(format string, params ...interface{}) Warnf(format string, params ...interface{}) Errorf(format string, params ...interface{}) Fatalf(format string, params ...interface{}) Trace(params ...interface{}) Debug(params ...interface{}) Info(params ...interface{}) Warn(params ...interface{}) Error(params ...interface{}) Fatal(params ...interface{}) Level() Level SetLevel(level Level) }
var Disabled Logger
Click to show internal directories.
Click to hide internal directories.