logs

package
v0.0.0-...-f34ac1a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2018 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(f interface{}, args ...interface{})

Debug wrapper Debug logger

func Debugln

func Debugln(v ...interface{})

Debugln wrapper Debugln logger

func Error

func Error(f interface{}, args ...interface{})

Error wrapper Error logger

func Errorln

func Errorln(args ...interface{})

Errorln wrapper Errorln logger

func Fatal

func Fatal(f interface{}, args ...interface{})

Fatal wrapper Fatal logger

func Fatalln

func Fatalln(args ...interface{})

Fatalln wrapper Fatalln logger

func GetLogger

func GetLogger() *logrus.Logger

GetLogger get the default logger

func Info

func Info(f interface{}, args ...interface{})

Info wrapper Info logger

func Infoln

func Infoln(args ...interface{})

Infoln wrapper Infoln logger

func Logger

func Logger(log *logrus.Logger) gin.HandlerFunc

Logger is the logrus logger handler

func New

func New(logger *logrus.Logger, skipPaths ...string) gin.HandlerFunc

New returns a gin compatable middleware using logrus to logs skipPaths only skips the INFO loglevel

func NewLogger

func NewLogger() *logrus.Logger

NewLogger create the logrus.Logger with special config

func Panic

func Panic(f interface{}, args ...interface{})

Panic wrapper Panic logger

func Panicln

func Panicln(args ...interface{})

Panicln wrapper Panicln logger

func Printf

func Printf(f interface{}, args ...interface{})

Printf wrapper Printf logger

func Printfln

func Printfln(args ...interface{})

Printfln wrapper Printfln logger

func Warn

func Warn(f interface{}, args ...interface{})

Warn wrapper Warn logger

func Warnln

func Warnln(args ...interface{})

Warnln wrapper Warnln logger

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL