logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(fields *Fields, message string)

func Debugf

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

formatting support

func EnableFileLogger

func EnableFileLogger(enable bool, savePath string) error

default file logger is disabled

func EnableStd

func EnableStd(enable bool)

default std logger is enabled

func Error

func Error(fields *Fields, message string)

func Errorf

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

func Fatal

func Fatal(fields *Fields, message string)

func Fatalf

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

func Info

func Info(fields *Fields, message string)

func Infof

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

func Panic

func Panic(fields *Fields, message string)

func Panicf

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

func SetToDebug

func SetToDebug()

func Warn

func Warn(fields *Fields, message string)

func Warnf

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

Types

type Fields

type Fields = logrus.Fields

Jump to

Keyboard shortcuts

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