metadata

package
v0.1.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLevel

func GetLevel(module string) log.Level

GetLevel - getting log level for given module.

func HideCallerInfo

func HideCallerInfo(module string, level log.Level)

HideCallerInfo - Do not show caller info in log lines for given log level and module.

func IsCallerInfoEnabled

func IsCallerInfoEnabled(module string, level log.Level) bool

IsCallerInfoEnabled - returns if caller info enabled for given log level and module.

func IsEnabledFor

func IsEnabledFor(module string, level log.Level) bool

IsEnabledFor - Check if given log level is enabled for given module.

func ParseLevel

func ParseLevel(level string) (log.Level, error)

ParseLevel returns the log level from a string representation.

func ParseString

func ParseString(level log.Level) string

ParseString returns string representation of given log level.

func SetLevel

func SetLevel(module string, level log.Level)

SetLevel - setting log level for given module.

func ShowCallerInfo

func ShowCallerInfo(module string, level log.Level)

ShowCallerInfo - Show caller info in log lines for given log level and module.

Types

This section is empty.

Jump to

Keyboard shortcuts

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