Documentation
¶
Index ¶
Constants ¶
const DefaultLogFile = "/tmp/llm-proxy.log"
DefaultLogFile is the full-log destination used when --log is not passed.
const LogOff = "off"
LogOff is the --log value that disables file logging entirely.
Variables ¶
This section is empty.
Functions ¶
func ExpandPath ¶
func RedactHeaderValue ¶
func ResolveLogFile ¶ added in v0.0.12
ResolveLogFile maps the --log flag value to the file to open. It returns the resolved path and whether the default was applied (so the caller can print a notice). A false resolved value means no file logging.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func OpenAppend ¶
OpenAppend opens an hourly-rotated log. The requested path is maintained as a symlink to the current hourly segment.