Documentation
¶
Index ¶
Constants ¶
View Source
const MaxLogLines = 1000
MaxLogLines is the maximum number of lines to read from log file
Variables ¶
View Source
var ( // LogBuffer stores recent log entries in memory LogBuffer = newRingBuffer(1000) // Logger is the global debug logger Logger *log.Logger // Enabled indicates if debug mode is active Enabled bool // LogFilePath is the path to the log file (if set via --log) LogFilePath string )
Functions ¶
func PrettyJSON ¶
PrettyJSON formats JSON bytes for readable logging
func ReadLogFile ¶
ReadLogFile reads the last MaxLogLines lines from the log file
func SetLogFile ¶
SetLogFile writes logs to a file in addition to buffer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.