go-log: github.com/siddontang/go-log/loggers Index | Files

package loggers

import "github.com/siddontang/go-log/loggers"

Index

Package Files

loggers.go

type Advanced Uses

type Advanced interface {
    Standard

    Debug(args ...interface{})
    Debugf(format string, args ...interface{})
    Debugln(args ...interface{})

    Error(args ...interface{})
    Errorf(format string, args ...interface{})
    Errorln(args ...interface{})

    Info(args ...interface{})
    Infof(format string, args ...interface{})
    Infoln(args ...interface{})

    Warn(args ...interface{})
    Warnf(format string, args ...interface{})
    Warnln(args ...interface{})
}

Advanced is an interface with commonly used log level methods.

type Contextual Uses

type Contextual interface {
    Advanced

    WithField(key string, value interface{}) Advanced
    WithFields(fields ...interface{}) Advanced
}

Contextual is an interface that allows context addition to a log statement before calling the final print (message/level) method.

type Standard Uses

type Standard interface {
    Fatal(args ...interface{})
    Fatalf(format string, args ...interface{})
    Fatalln(args ...interface{})

    Panic(args ...interface{})
    Panicf(format string, args ...interface{})
    Panicln(args ...interface{})

    Print(args ...interface{})
    Printf(format string, args ...interface{})
    Println(args ...interface{})
}

Standard is the interface used by Go's standard library's log package.

Package loggers is imported by 1 packages. Updated 2018-08-06. Refresh now. Tools for package owners.