logger

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func GetLogger

func GetLogger() *logrus.Logger

func Info

func Info(args ...interface{})

func Infof

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

func Panic

func Panic(args ...interface{})

func Panicf

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

func Print

func Print(args ...interface{})

func Printf

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

func Println

func Println(args ...interface{})

func Setup

func Setup(conf Config)

func Trace

func Trace(args ...interface{})

func Tracef

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

func Warn

func Warn(args ...interface{})

func Warnf

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

func WithField

func WithField(key string, value interface{}) *logrus.Entry

Types

type Config

type Config struct {
	Level        string `json:"level" toml:"level" yaml:"level" mapstructure:"level" `
	ReportCaller bool   `json:"report_caller" toml:"report_caller" yaml:"report_caller" mapstructure:"report_caller" `
	Format       string `json:"format" toml:"format" yaml:"format" mapstructure:"format" `
	Console      bool   `json:"console" toml:"console" yaml:"console" mapstructure:"console" `
	File         string `json:"file" toml:"file" yaml:"file" mapstructure:"file" `
}

Jump to

Keyboard shortcuts

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