package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Apr 10, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package log provides structured logging for bc using log/slog.
Debug logs a debug message. Only shown when verbose is enabled.
Error logs an error message.
Info logs an info message.
Logger returns the underlying slog.Logger.
SetFormat sets the log output format ("text" or "json").
Default is "text". JSON format is useful for log aggregation tools.
SetOutput sets the output writer for the logger.
SetVerbose enables or disables verbose (debug) logging.
Warn logs a warning message.
With returns a logger with the given attributes.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.