log

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugLogLn

func DebugLogLn(msg string)

func ErrorLn

func ErrorLn(err error)

func ErrorLogLn

func ErrorLogLn(msg string)

func EventLn

func EventLn(eventType api.EventType, data interface{}) error

func InfoLogLn

func InfoLogLn(msg string)

func PrintLogLn

func PrintLogLn(level api.LogLevel, msg string)

func PrintLogs

func PrintLogs() bool

PrintLogs returns if print logs on standard output is enabled

func SetPrintLogs

func SetPrintLogs(printLogs bool)

SetPrintLogs enables or disables print logs on standard output

func WarningLogLn

func WarningLogLn(msg string)

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger the structure with the needed fields Print logs can be enabled.

func Default

func Default() *Logger

Default the default Logger

func New

func New() *Logger

New instances new default Logger

func (*Logger) ErrorLn

func (l *Logger) ErrorLn(err error)

func (*Logger) EventLn

func (l *Logger) EventLn(eventType api.EventType, data interface{}) error

func (*Logger) PrintLogLn

func (l *Logger) PrintLogLn(level api.LogLevel, msg string)

func (*Logger) SetPrintLogs

func (l *Logger) SetPrintLogs(printLogs bool)

SetPrintLogs enables or disables print logs on standard output Default is false

Jump to

Keyboard shortcuts

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