logger

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, v ...interface{})

Debug sends a debug log message.

func EnableDateTime

func EnableDateTime()

EnableDateTime enables date time in log messages.

func EnableDebug

func EnableDebug()

EnableDebug increases logging, more verbose (debug)

func Error

func Error(format string, v ...interface{})

Error sends an error log message.

func Fatal

func Fatal(format string, v ...interface{})

Fatal sends a fatal log message and stop the execution of the program.

func Info

func Info(format string, v ...interface{})

Info sends an info log message.

Types

type LogLevel

type LogLevel uint32

LogLevel type.

const (
	// FatalLevel should be used in fatal situations, the app will exit.
	FatalLevel LogLevel = iota

	// ErrorLevel should be used when someone should really look at the error.
	ErrorLevel

	// InfoLevel should be used during normal operations.
	InfoLevel

	// DebugLevel should be used only during development.
	DebugLevel
)

func (LogLevel) String

func (level LogLevel) String() string

Jump to

Keyboard shortcuts

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