Documentation
¶
Overview ¶
Package logging provides *slog.Logger functionality to gxpdf
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
Logger returns the package-level logger. If no logger has been set via SetLogger, returns a discard logger that discards all output.
Logger is safe for concurrent use.
func SetLogger ¶
SetLogger configures the package-level logger for debug output. Pass nil to disable logging (will use slog.DiscardHandler). Pass a configured *slog.Logger to capture debug output.
SetLogger is safe for concurrent use.
Example enabling debug output to stderr:
logging.SetLogger(slog.New(slog.NewTextHandler(os.Stderr, nil)))
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.