Enhance logging configuration by introducing file output options and rotation settings in config.dev.toml. Update logger implementation to support multiple output streams, including file logging with rotation using lumberjack. Improve error handling and logging across various components, ensuring consistent logging practices. Update .gitignore to include log files and compressed logs. Add new Go module dependency for lumberjack.

This commit is contained in:
windyboy
2025-11-17 12:58:40 +08:00
parent 204217015d
commit 67abd66fa3
12 changed files with 326 additions and 31 deletions
@@ -50,7 +50,7 @@ func TestJetStreamToTimescaleFlow(t *testing.T) {
}
defer logger.Sync()
pool, err := postgresinfra.ProvideDB(cfg)
pool, err := postgresinfra.ProvideDB(cfg, logger)
if err != nil {
t.Fatalf("failed to init postgres: %v", err)
}