-
Notifications
You must be signed in to change notification settings - Fork 3
[WIP] Add log handler for writing errors to file #9
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
base: main
Are you sure you want to change the base?
[WIP] Add log handler for writing errors to file #9
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benjaminapetersen The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold |
| } | ||
|
|
||
| // initLog creates a new log file with a timestamped name each run. | ||
| func initLog() (*os.File, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could add as a flag, --log-file ./ -- otherwise it goes to stdout, wdyt?
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Address issue #7
A quick prototype PR to get a conversation started.
Creates a
/logsdir on the file system and a new log file on each run:Contents of log file are something like:
Currently the log message along the footer of SignalHound can be truncated for the same error message:
@knabben