Documentation
¶
Overview ¶
Package logger implements an interface behind which a third party, levelled logger can sit. This abstraction allows us to readily swap out the logger used and to pass it down throughout the spok program without changing the logger being a massive task.
Spok's logging needs are fairly basic, it really only needs DEBUG level logs for the --verbose flag.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { // Sync flushes the logs to stderr Sync() error // Debug outputs a debug level log line Debug(format string, args ...any) }
Logger is the interface behind which a debug logger can sit.
Click to show internal directories.
Click to hide internal directories.