gommon: github.com/labstack/gommon/log Index | Files

package log

import "github.com/labstack/gommon/log"

Index

Package Files

color.go log.go

func Debug Uses

func Debug(i ...interface{})

func Debugf Uses

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

func Debugj Uses

func Debugj(j JSON)

func DisableColor Uses

func DisableColor()

func EnableColor Uses

func EnableColor()

func Error Uses

func Error(i ...interface{})

func Errorf Uses

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

func Errorj Uses

func Errorj(j JSON)

func Fatal Uses

func Fatal(i ...interface{})

func Fatalf Uses

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

func Fatalj Uses

func Fatalj(j JSON)

func Info Uses

func Info(i ...interface{})

func Infof Uses

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

func Infoj Uses

func Infoj(j JSON)

func Output Uses

func Output() io.Writer

func Panic Uses

func Panic(i ...interface{})

func Panicf Uses

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

func Panicj Uses

func Panicj(j JSON)

func Prefix Uses

func Prefix() string

func Print Uses

func Print(i ...interface{})

func Printf Uses

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

func Printj Uses

func Printj(j JSON)

func SetHeader Uses

func SetHeader(h string)

func SetLevel Uses

func SetLevel(v Lvl)

func SetOutput Uses

func SetOutput(w io.Writer)

func SetPrefix Uses

func SetPrefix(p string)

func Warn Uses

func Warn(i ...interface{})

func Warnf Uses

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

func Warnj Uses

func Warnj(j JSON)

type JSON Uses

type JSON map[string]interface{}

type Logger Uses

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

func New Uses

func New(prefix string) (l *Logger)

func (*Logger) Color Uses

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

func (*Logger) Debug Uses

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

func (*Logger) Debugf Uses

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

func (*Logger) Debugj Uses

func (l *Logger) Debugj(j JSON)

func (*Logger) DisableColor Uses

func (l *Logger) DisableColor()

func (*Logger) EnableColor Uses

func (l *Logger) EnableColor()

func (*Logger) Error Uses

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

func (*Logger) Errorf Uses

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

func (*Logger) Errorj Uses

func (l *Logger) Errorj(j JSON)

func (*Logger) Fatal Uses

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

func (*Logger) Fatalf Uses

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

func (*Logger) Fatalj Uses

func (l *Logger) Fatalj(j JSON)

func (*Logger) Info Uses

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

func (*Logger) Infof Uses

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

func (*Logger) Infoj Uses

func (l *Logger) Infoj(j JSON)

func (*Logger) Level Uses

func (l *Logger) Level() Lvl

func (*Logger) Output Uses

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

func (*Logger) Panic Uses

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

func (*Logger) Panicf Uses

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

func (*Logger) Panicj Uses

func (l *Logger) Panicj(j JSON)

func (*Logger) Prefix Uses

func (l *Logger) Prefix() string

func (*Logger) Print Uses

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

func (*Logger) Printf Uses

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

func (*Logger) Printj Uses

func (l *Logger) Printj(j JSON)

func (*Logger) SetHeader Uses

func (l *Logger) SetHeader(h string)

func (*Logger) SetLevel Uses

func (l *Logger) SetLevel(v Lvl)

func (*Logger) SetOutput Uses

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

func (*Logger) SetPrefix Uses

func (l *Logger) SetPrefix(p string)

func (*Logger) Warn Uses

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

func (*Logger) Warnf Uses

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

func (*Logger) Warnj Uses

func (l *Logger) Warnj(j JSON)

type Lvl Uses

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

func Level Uses

func Level() Lvl

Package log imports 14 packages (graph) and is imported by 369 packages. Updated 2019-03-04. Refresh now. Tools for package owners.