logger

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatValues added in v0.8.0

func FormatValues() []string

func LevelValues

func LevelValues() []string

func SetContext

func SetContext(source string)

func SetFileOutput

func SetFileOutput(filePath string) (func() error, error)

func SetFormat added in v0.8.0

func SetFormat(value string, out io.Writer)

func SetLevel

func SetLevel(value string)

func SetSessionId added in v0.8.0

func SetSessionId()

func SetTimestamp

func SetTimestamp()

Types

type LogFormat added in v0.8.0

type LogFormat uint8
const (
	JsonLogFormat LogFormat = iota
	TextLogFormat
)

func (LogFormat) String added in v0.8.0

func (l LogFormat) String() string

type LogLevel

type LogLevel uint8
const (
	DebugLogLevel LogLevel = iota
	InfoLogLevel
	WarningLogLevel
	ErrorLogLevel
)

func (LogLevel) String

func (l LogLevel) String() string

Jump to

Keyboard shortcuts

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