logrus

package
v1.3.22 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(level string, traceMode, debugMode bool, opts ...Opt) log.Logger

New create a sugared logrus logger

level can be: "disable", "panic", "fatal", "error", "warn", "info", "debug", "trace"

func NewWithConfig

func NewWithConfig(config *log.LoggerConfig, opts ...Opt) log.Logger

func NewWithConfigSimple added in v1.3.11

func NewWithConfigSimple(config *log.LoggerConfig) log.Logger

Types

type Opt

type Opt func(logger *logrus.Logger)

func WithLoggingFormat

func WithLoggingFormat(format string) Opt

Jump to

Keyboard shortcuts

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