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

DefaultLogger: Buffer log output until the log output is configured #12

Merged

Conversation

jkellerer
Copy link
Contributor

@jkellerer jkellerer commented Oct 9, 2023

Prevents any log output from the default logger until a log output handler or a new default logger is configured.

Log is buffered by up to 2MB and discarded completely if the buffer is exceeded and no output was configured. Any buffered log is sent to the output handler when set.

@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (328905f) 94.96% compared to head (a76c797) 95.88%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #12      +/-   ##
==========================================
+ Coverage   94.96%   95.88%   +0.91%     
==========================================
  Files          21       22       +1     
  Lines         576      656      +80     
==========================================
+ Hits          547      629      +82     
+ Misses         21       19       -2     
  Partials        8        8              
Files Coverage Δ
log.go 94.44% <100.00%> (+5.80%) ⬆️
logger.go 90.76% <100.00%> (+0.14%) ⬆️
memory_handler.go 100.00% <100.00%> (ø)
overflow_handler.go 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sonarcloud
Copy link

sonarcloud bot commented Oct 14, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@creativeprojects
Copy link
Owner

Nice one 👍🏻 thanks for that 😉

@creativeprojects creativeprojects merged commit 1f07968 into creativeprojects:master Oct 14, 2023
10 checks passed
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.

None yet

2 participants