package
0.0.0-20221113152023-da2079575705
Repository: https://github.com/openrfsense/common.git
Documentation: pkg.go.dev
# Functions
Debug uses fmt.Sprint to construct and log a message at DebugLevel.
Debugf uses fmt.Sprintf to log a formatted message at DebugLevel.
Error uses fmt.Sprint to construct and log a message at ErrorLevel.
Errorf uses fmt.Sprintf log a formatted message at ErrorLevel.
Fatal uses fmt.Sprint to construct and log a message at FatalLevel, then calls os.Exit.
Fatalf uses fmt.Sprintf log a formatted message at FatalLevel, then calls os.Exit.
Info uses fmt.Sprint to construct and log a message at InfoLevel.
Infof uses fmt.Sprintf log a formatted message at InfoLevel.
Creates a new Logger with the given options.
Panic uses fmt.Sprint to construct and log a message at PanicLevel, then panics.
Panicf uses fmt.Sprintf log a formatted message at PanicLevel, then panics.
Warn uses fmt.Sprint to construct and log a message at WarnLevel.
Warnf uses fmt.Sprintf log a formatted message at WarnLevel.
# Constants
DebugLevel logs are typically voluminous, and are usually disabled in production.
ErrorLevel logs are high-priority.
FatalLevel logs a message, then calls os.Exit(1).
InfoLevel is the default logging priority.
PanicLevel logs a message, then panics.
WarnLevel logs are more important than Info, but don't need individual human review.
# Variables
More verbose logging flags for debugging/development.
Less verbose logging info.
# Structs
Type Logger represents a logger instance with a specific unit name (prefix) and logging level.