24 lines
666 B
Go
24 lines
666 B
Go
// Package log provides structured logging for ollie.
|
|
//
|
|
// The package supports log levels (debug, info, warn, error) and can
|
|
// be configured via environment variables or programmatically.
|
|
//
|
|
// # Usage
|
|
//
|
|
// log := log.New("session")
|
|
// log.Info("starting session %s", id)
|
|
// log.Debug("verbose detail: %v", data)
|
|
//
|
|
// # Configuration
|
|
//
|
|
// Set OLLIE_LOG_LEVEL to control output: debug, info, warn, error.
|
|
// Default is info. Debug output is useful for development but verbose
|
|
// in production.
|
|
//
|
|
// # Output Format
|
|
//
|
|
// Messages include timestamp, level, logger name, and message:
|
|
//
|
|
// 2024-01-15T10:30:00 INFO [session] starting session abc123
|
|
package log
|