logger

package
v0.0.0-...-5b0d633 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2019 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string, fields ...logrus.Fields)

Debug writes useful debugging information to log

func Error

func Error(message string, fields ...logrus.Fields)

Error writes something failed to log

func Fatal

func Fatal(message string, fields ...logrus.Fields)

Fatal writes something failed to log and calls os.Exit(1) after logging

func Info

func Info(message string, fields ...logrus.Fields)

Info writes something noteworthy happened to log

func Init

func Init(filePath, runMode string) error

Init init logger for application

func Logger

func Logger() gin.HandlerFunc

Logger returns a logger for gin framework

func Panic

func Panic(message string, fields ...logrus.Fields)

Panic writes something failed to log and calls panic() after logging

func SetFormatter

func SetFormatter(formatter logrus.Formatter)

SetFormatter set log format

func SetLevel

func SetLevel(level logrus.Level)

SetLevel set log level

func SetOutput

func SetOutput(out io.Writer)

SetOutput set output of log

func Trace

func Trace(message string, fields ...logrus.Fields)

Trace writes something very low level to log

func Warn

func Warn(message string, fields ...logrus.Fields)

Warn writes messages you should probably take a look at to log

Types

This section is empty.

Jump to

Keyboard shortcuts

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