docs(logger): clarify ConfigureFromEnv godoc about log level config
The function only handles PICOCLAW_LOG_FILE for file logging. PICOCLAW_LOG_LEVEL is handled separately in pkg/config/gateway.go. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
15a70ac45c
commit
1f390867f8
1 changed files with 3 additions and 0 deletions
|
|
@ -217,6 +217,9 @@ func DisableFileLogging() {
|
|||
}
|
||||
}
|
||||
|
||||
// ConfigureFromEnv reads PICOCLAW_LOG_FILE from the environment and
|
||||
// enables file logging if set. The log level is controlled separately
|
||||
// via PICOCLAW_LOG_LEVEL in the config/gateway package.
|
||||
func ConfigureFromEnv() {
|
||||
if logFile := os.Getenv("PICOCLAW_LOG_FILE"); logFile != "" {
|
||||
if strings.HasPrefix(logFile, "~/") {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue