Back to godoc.org
github.com/tribehq/platform / lib / log / echo_logger

Package echo_logger

v0.0.0-...-3e1c22f
Latest Go to latest

The highest tagged major version is .

Published: Oct 2, 2019 | License: GPL2 | Module: github.com/tribehq/platform

Index

func Debug

func Debug(i ...interface{})

Debug output message of debug level

func Debugf

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

Debugf output format message of debug level

func Debugj

func Debugj(j log.JSON)

Debugj output json of debug level

func Error

func Error(i ...interface{})

Error output message of error level

func Errorf

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

Errorf output format message of error level

func Errorj

func Errorj(j log.JSON)

Errorj output json of error level

func Fatal

func Fatal(i ...interface{})

Fatal output message of fatal level

func Fatalf

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

Fatalf output format message of fatal level

func Fatalj

func Fatalj(j log.JSON)

Fatalj output json of fatal level

func Info

func Info(i ...interface{})

Info output message of info level

func Infof

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

Infof output format message of info level

func Infoj

func Infoj(j log.JSON)

Infoj output json of info level

func LogrusLogger

func LogrusLogger() echo.MiddlewareFunc

Logger returns a middleware that logs HTTP requests.

func Panic

func Panic(i ...interface{})

Panic output message of panic level

func Panicf

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

Panicf output format message of panic level

func Panicj

func Panicj(j log.JSON)

Panicj output json of panic level

func Print

func Print(i ...interface{})

Print output message of print level

func Printf

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

Printf output format message of print level

func Printj

func Printj(j log.JSON)

Printj output json of print level

func Warn

func Warn(i ...interface{})

Warn output message of warn level

func Warnf

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

Warnf output format message of warn level

func Warnj

func Warnj(j log.JSON)

Warnj output json of warn level

type EchoLogger

type EchoLogger struct {
	*logrus.Logger
}

EchoLogger extend logrus.EchoLogger

func Logger

func Logger() *EchoLogger

Logger return singleton logger

func (*EchoLogger) Debug

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

Debug output message of debug level

func (*EchoLogger) Debugf

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

Debugf output format message of debug level

func (*EchoLogger) Debugj

func (l *EchoLogger) Debugj(j log.JSON)

Debugj output message of debug level

func (*EchoLogger) Error

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

Error output message of error level

func (*EchoLogger) Errorf

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

Errorf output format message of error level

func (*EchoLogger) Errorj

func (l *EchoLogger) Errorj(j log.JSON)

Errorj output json of error level

func (*EchoLogger) Fatal

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

Fatal output message of fatal level

func (*EchoLogger) Fatalf

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

Fatalf output format message of fatal level

func (*EchoLogger) Fatalj

func (l *EchoLogger) Fatalj(j log.JSON)

Fatalj output json of fatal level

func (*EchoLogger) Formatter

func (l *EchoLogger) Formatter() logrus.Formatter

Formatter return logger formatter

func (*EchoLogger) Info

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

Info output message of info level

func (*EchoLogger) Infof

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

Infof output format message of info level

func (*EchoLogger) Infoj

func (l *EchoLogger) Infoj(j log.JSON)

Infoj output json of info level

func (*EchoLogger) Level

func (l *EchoLogger) Level() log.Lvl

Level return logger level

func (*EchoLogger) Output

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

Output return logger io.Writer

func (*EchoLogger) Panic

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

Panic output message of panic level

func (*EchoLogger) Panicf

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

Panicf output format message of panic level

func (*EchoLogger) Panicj

func (l *EchoLogger) Panicj(j log.JSON)

Panicj output json of panic level

func (*EchoLogger) Prefix

func (l *EchoLogger) Prefix() string

Prefix return logger prefix This function do nothing

func (*EchoLogger) Print

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

Print output message of print level

func (*EchoLogger) Printf

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

Printf output format message of print level

func (*EchoLogger) Printj

func (l *EchoLogger) Printj(j log.JSON)

Printj output json of print level

func (*EchoLogger) SetFormatter

func (l *EchoLogger) SetFormatter(formatter logrus.Formatter)

SetFormatter logger formatter Only support logrus formatter

func (*EchoLogger) SetHeader

func (l *EchoLogger) SetHeader(h string)

SetHeader logger header Managed by Logrus itself This function do nothing

func (*EchoLogger) SetLevel

func (l *EchoLogger) SetLevel(v log.Lvl)

SetLevel logger level

func (*EchoLogger) SetOutput

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

SetOutput logger io.Writer

func (*EchoLogger) SetPrefix

func (l *EchoLogger) SetPrefix(p string)

SetPrefix logger prefix This function do nothing

func (*EchoLogger) Warn

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

Warn output message of warn level

func (*EchoLogger) Warnf

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

Warnf output format message of warn level

func (*EchoLogger) Warnj

func (l *EchoLogger) Warnj(j log.JSON)

Warnj output json of warn level

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

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