logrus

package
v1.6.15 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: MIT Imports: 11 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)

Jump to

Keyboard shortcuts

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