Back to godoc.org

Package log

v0.3.0
Latest Go to latest
Published: Aug 17, 2019 | License: MIT | Module: github.com/labstack/gommon

Index

Package Files

func Debug

func Debug(i ...interface{})

func Debugf

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

func Debugj

func Debugj(j JSON)

func DisableColor

func DisableColor()

func EnableColor

func EnableColor()

func Error

func Error(i ...interface{})

func Errorf

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

func Errorj

func Errorj(j JSON)

func Fatal

func Fatal(i ...interface{})

func Fatalf

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

func Fatalj

func Fatalj(j JSON)

func Info

func Info(i ...interface{})

func Infof

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

func Infoj

func Infoj(j JSON)

func Output

func Output() io.Writer

func Panic

func Panic(i ...interface{})

func Panicf

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

func Panicj

func Panicj(j JSON)

func Prefix

func Prefix() string

func Print

func Print(i ...interface{})

func Printf

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

func Printj

func Printj(j JSON)

func SetHeader

func SetHeader(h string)

func SetLevel

func SetLevel(level Lvl)

func SetOutput

func SetOutput(w io.Writer)

func SetPrefix

func SetPrefix(p string)

func Warn

func Warn(i ...interface{})

func Warnf

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

func Warnj

func Warnj(j JSON)

type JSON

type JSON map[string]interface{}

type Logger

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

func New

func New(prefix string) (l *Logger)

func (*Logger) Color

func (l *Logger) Color() *color.Color

func (*Logger) Debug

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

func (*Logger) Debugf

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

func (*Logger) Debugj

func (l *Logger) Debugj(j JSON)

func (*Logger) DisableColor

func (l *Logger) DisableColor()

func (*Logger) EnableColor

func (l *Logger) EnableColor()

func (*Logger) Error

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

func (*Logger) Errorf

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

func (*Logger) Errorj

func (l *Logger) Errorj(j JSON)

func (*Logger) Fatal

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

func (*Logger) Fatalf

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

func (*Logger) Fatalj

func (l *Logger) Fatalj(j JSON)

func (*Logger) Info

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

func (*Logger) Infof

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

func (*Logger) Infoj

func (l *Logger) Infoj(j JSON)

func (*Logger) Level

func (l *Logger) Level() Lvl

func (*Logger) Output

func (l *Logger) Output() io.Writer

func (*Logger) Panic

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

func (*Logger) Panicf

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

func (*Logger) Panicj

func (l *Logger) Panicj(j JSON)

func (*Logger) Prefix

func (l *Logger) Prefix() string

func (*Logger) Print

func (l *Logger) Print(i ...interface{})

func (*Logger) Printf

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

func (*Logger) Printj

func (l *Logger) Printj(j JSON)

func (*Logger) SetHeader

func (l *Logger) SetHeader(h string)

func (*Logger) SetLevel

func (l *Logger) SetLevel(level Lvl)

func (*Logger) SetOutput

func (l *Logger) SetOutput(w io.Writer)

func (*Logger) SetPrefix

func (l *Logger) SetPrefix(p string)

func (*Logger) Warn

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

func (*Logger) Warnf

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

func (*Logger) Warnj

func (l *Logger) Warnj(j JSON)

type Lvl

type Lvl uint8
const (
	DEBUG Lvl = iota + 1
	INFO
	WARN
	ERROR
	OFF
)

func Level

func Level() Lvl
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier