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

fix: ensure log rotation using tests #693

Merged
merged 2 commits into from
Sep 12, 2023

Conversation

b00f
Copy link
Collaborator

@b00f b00f commented Sep 12, 2023

Description

This PR:

  • Enables writing to os.Stderr and to files for both global and sub-loggers.
  • Ensures the working space remains unaffected during project testing.
  • Introduces a test for log rotation.

Related issue(s)

This PR also fixes #666

@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Merging #693 (09abca4) into main (b146535) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #693      +/-   ##
==========================================
+ Coverage   83.41%   83.51%   +0.09%     
==========================================
  Files         168      168              
  Lines        7973     7969       -4     
==========================================
+ Hits         6651     6655       +4     
+ Misses       1017     1011       -6     
+ Partials      305      303       -2     

Copy link
Member

@amirvalhalla amirvalhalla left a comment

Choose a reason for hiding this comment

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

@b00f
thanks

@amirvalhalla amirvalhalla merged commit b56af2f into pactus-project:main Sep 12, 2023
12 checks passed
@b00f b00f deleted the fix-logger branch September 13, 2023 13:41
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.

Logger formating issue
2 participants