Discover Packages
github.com/kmdkuk/mcing
pkg
log
package
Version:
v0.7.1
Opens a new window with list of versions in this module.
Published: Feb 2, 2026
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Debug logs a debug message.
Debugf logs a formatted debug message.
Error logs an error message.
Errorf logs a formatted error message.
Fatal logs a fatal message and exits.
Fatalf logs a formatted fatal message and exits.
Warn logs a warn message.
Warnf logs a formatted warn message.
Level represents the severity of the log.
const (
DEBUG Level = iota
WARN
ERROR
FATAL
)
Prefix returns the prefix string for the level.
Logger is a wrapper around log.Logger .
NewLogger creates a new Logger.
IsLevelEnabled checks if the level is enabled.
Logf logs a formatted message.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.