Skip to content
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

WIP: Add file based log driver #772

Closed
wants to merge 2 commits into from

Conversation

saschagrunert
Copy link
Member

What type of PR is this?

/kind feature

What this PR does / why we need it:

This allows to add a file based log driver in a pre-defined path.

Which issue(s) this PR fixes:

Refers to #740

Special notes for your reviewer:

Requires #770

Does this PR introduce a user-facing change?

Added file based log driver type. The log file path fill be generated to match `[--runtime-dir]/logs/conmonrs.YYYY-MM-DD` and rotates on a daily basis. 

This extends the API to allow multiple log drivers in parallel. We can
later on support other drivers like files to log into multiple
destinations.

Signed-off-by: Sascha Grunert <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 4, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

This allows to add a file based log driver in a pre-defined path.

Signed-off-by: Sascha Grunert <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Oct 4, 2022

Codecov Report

Merging #772 (0a97500) into main (e58ae5a) will decrease coverage by 0.91%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #772      +/-   ##
==========================================
- Coverage   31.91%   31.00%   -0.92%     
==========================================
  Files          13       13              
  Lines        1131     1129       -2     
  Branches      423      429       +6     
==========================================
- Hits          361      350      -11     
- Misses        485      500      +15     
+ Partials      285      279       -6     

@saschagrunert saschagrunert deleted the log-file branch October 4, 2022 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants