package
0.32.1
Repository: https://github.com/adguardteam/golibs.git
Documentation: pkg.go.dev

# Functions

Debug writes to debug log.
Error writes to error log.
Fatal writes to error log and exits application.
Fatalf writes to error log and exits application.
GetLevel returns level.
Info writes to info log.
OnCloserError is a convenient helper to log errors returned by io.Closer The point is to not lose information from deferred Close calls.
OnPanic is a convenient deferred helper function to log a panic in a goroutine.
OnPanicAndExit is a convenient deferred helper function to log a panic in a goroutine.
Panic is equivalent to Print() followed by a call to panic().
Panicf is equivalent to Printf() followed by a call to panic().
Print writes to info log.
Printf writes to info log.
Println writes to info log.
SetFlags sets the output flags for the default logger.
SetLevel sets logging level.
SetOutput sets output printing method.
StartTimer returns a Timer with a start time.
StdLog returns a Go standard library logger that writes everything to logs the way this library's logger would.
Tracef writes to debug log and adds the calling function's name.
Writer returns the output destination for the default logger.

# Constants

Level constants.
Level constants.
Level constants.
These constants are the same as in the standard package "log".
These constants are the same as in the standard package "log".
These constants are the same as in the standard package "log".
These constants are the same as in the standard package "log".
These constants are the same as in the standard package "log".
These constants are the same as in the standard package "log".
These constants are the same as in the standard package "log".
These constants are the same as in the standard package "log".
Level constants.

# Structs

Timer is a wrapper for time.

# Type aliases

Level is the log level type.