1
0
Fork 0
hugo/common/loggers
Bjørn Erik Pedersen 9dfa112617
Write all logging (INFO, WARN, ERROR) to stderr
The old setup tried to log >= warning to stderr, the rest to stdout.

However, that logic was flawed, so warnings ended up in stdout, which makes `hugo list all` etc. hard to reason about from scripts.

This commit fixes this by making all logging (info, warn, error) log to stderr and let stdout be reserved for program output.

Fixes #13074
2024-12-13 09:23:09 +01:00
..
handlerdefault.go all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
handlersmisc.go Consolidate all hashing to the common/hashing package 2024-07-31 16:44:06 +02:00
handlerterminal.go Write all logging (INFO, WARN, ERROR) to stderr 2024-12-13 09:23:09 +01:00
handlerterminal_test.go server: Strip ANSI escape codes from browser error log 2024-11-14 14:25:07 +01:00
logger.go Write all logging (INFO, WARN, ERROR) to stderr 2024-12-13 09:23:09 +01:00
logger_test.go Write all logging (INFO, WARN, ERROR) to stderr 2024-12-13 09:23:09 +01:00
loggerglobal.go all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00