Skip to content

Add support to write logs to a file#87

Merged
jeremy-clerc merged 2 commits into
mainfrom
logs
Jun 10, 2026
Merged

Add support to write logs to a file#87
jeremy-clerc merged 2 commits into
mainfrom
logs

Conversation

@jeremy-clerc

Copy link
Copy Markdown
Contributor

This will allow a sidecar to process the logs, either for indexing or any other usecase.
The chart will be updated in a follow-up commit / PR to support a custom sidecar.

This will allow a sidecar to process the logs, either
for indexing or any other usecase.
Comment thread cmd/main.go Outdated

w := &lumberjack.Logger{
Filename: logPath,
MaxSize: 10,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be parameterized

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@jeremy-clerc jeremy-clerc merged commit 7afb9ba into main Jun 10, 2026
2 checks passed

@matchaxnb matchaxnb left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cosmetic but we could call logOutput "makeLogOutput" as it produces an optional io.Writer and is not a function to log an output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants