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

Http response recording/logging + Environment variables based config #53

Merged
merged 25 commits into from
Nov 22, 2023

Conversation

ldemailly
Copy link
Member

@ldemailly ldemailly commented Nov 20, 2023

See README.md and tests for new LogAndCall()

For env based config, you can set (see EnvHelp for list/current values):

LOGGER_LOG_PREFIX=' '
LOGGER_LOG_FILE_AND_LINE=false
LOGGER_FATAL_PANICS=false
LOGGER_JSON=false
LOGGER_NO_TIMESTAMP=false
LOGGER_CONSOLE_COLOR=true
LOGGER_FORCE_COLOR=false
LOGGER_GOROUTINE_ID=false
LOGGER_COMBINE_REQUEST_AND_RESPONSE=false
LOGGER_LEVEL='Info'

Copy link

codecov bot commented Nov 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (71b9af3) 100.00% compared to head (08c39b6) 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##              main       #53    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files            4         4            
  Lines          430       537   +107     
==========================================
+ Hits           430       537   +107     

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

@ldemailly ldemailly changed the title Http response recording/logging Http response recording/logging + Environment variables based config Nov 21, 2023
http_logging.go Outdated Show resolved Hide resolved
http_logging.go Outdated Show resolved Hide resolved
@ldemailly ldemailly merged commit 0e5e8b4 into main Nov 22, 2023
6 checks passed
@ldemailly ldemailly deleted the http_response_logging branch November 22, 2023 04:21
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.

2 participants