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

feat: add zerolog based rolling log system #883

Merged

Conversation

dudong2
Copy link
Contributor

@dudong2 dudong2 commented Feb 6, 2023

Description

Currently, chains based on cosmos-sdk only have the ability to output logs to the console. So far, we've been using pipes to store them as a single file. If the chain has been started for a long time, the size of the log file becomes too large and maintenance is difficult. So, the rolling log system has been added to Finschia/ostracon#535, and I want to use it in lbm-sdk.

closes: #837

Motivation and context

How has this been tested?

Screenshots (if appropriate):

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml

@dudong2 dudong2 added the A: improvement Changes in existing functionality label Feb 6, 2023
@dudong2 dudong2 self-assigned this Feb 6, 2023
@codecov
Copy link

codecov bot commented Feb 6, 2023

Codecov Report

Merging #883 (4289da8) into main (ec7cd38) will decrease coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #883      +/-   ##
==========================================
- Coverage   62.45%   62.45%   -0.01%     
==========================================
  Files         653      652       -1     
  Lines       79873    79854      -19     
==========================================
- Hits        49884    49872      -12     
+ Misses      27298    27292       -6     
+ Partials     2691     2690       -1     
Impacted Files Coverage Δ
client/flags/flags.go 89.47% <ø> (ø)

@dudong2 dudong2 marked this pull request as ready for review February 8, 2023 02:44
@dudong2 dudong2 requested review from zemyblue, 0Tech, jaeseung-bae, loin3 and tkxkd0159 and removed request for zemyblue February 8, 2023 02:44
tkxkd0159
tkxkd0159 previously approved these changes Feb 8, 2023
server/cmd/execute.go Outdated Show resolved Hide resolved
@zemyblue zemyblue added this to the v0.47.0-alpha1 milestone Feb 9, 2023
@dudong2 dudong2 merged commit f936c7d into Finschia:main Feb 9, 2023
@dudong2 dudong2 deleted the dudong2/feat/zerolog-based-rolling-log-system branch February 9, 2023 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: improvement Changes in existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

apply zerolog based log system(log level for module and rorate log)
4 participants