Skip to content

logs from logger can be stored in a files and in JSON format #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 25, 2022
Merged

Conversation

mikouaj
Copy link
Member

@mikouaj mikouaj commented Nov 23, 2022

  • setting env variableGKE_POLICY_LOG_PATH=log.log will cause logs to be stored in log.log
  • setting env variableGKE_POLICY_LOG_FORMAT=JSON will cause logs to be formatted as JSON <-- useful for Cloud Logging

Copy link
Member

@ewojtach ewojtach left a comment

Choose a reason for hiding this comment

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

LGTM!

@mikouaj mikouaj merged commit 4d87930 into main Nov 25, 2022
@mikouaj mikouaj deleted the logs-file branch November 25, 2022 14:22
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.

2 participants