Documentation
¶
Overview ¶
Package debug provides a file-based debug logger activated by AURA_DEBUG=1.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger writes timestamped debug output to <configDir>/debug.log. All methods are safe to call on a nil receiver (no-op). Methods are protected by a mutex for concurrent use from multiple goroutines.
func Global ¶
func Global() *Logger
Global returns the global logger (may be nil if not initialized or disabled).
func New ¶
New returns a Logger if enabled is true, otherwise nil. The log file is written to configDir/debug.log.
Click to show internal directories.
Click to hide internal directories.