docs(medic/cht-core#10357): document LOG_LEVEL env variable for Docker deployments#2172
Merged
docs(medic/cht-core#10357): document LOG_LEVEL env variable for Docker deployments#2172
Conversation
Co-authored-by: Sugat Bajracharya <30311933+sugat009@users.noreply.github.com>
Member
Author
|
@jkuester I created another PR to make a few changes w.r.t. medic/cht-core#10583. Would appreciate a review. Thanks! |
jkuester
approved these changes
Apr 1, 2026
|
|
||
| **Supported values:** | ||
|
|
||
| - `error` — Only error messages (production use) |
Contributor
There was a problem hiding this comment.
Minor, but it seems a bit confusing to put "production use" here and then also say "recommended for production" below for info. Probably okay to just remove the "production use" from this one... 🤷
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LOG_LEVELenvironment variable for controlling log verbosity inapiandsentinelcontainers.envfile approach (consistent with CHT deployment conventions) instead of shellexportdocker compose up -d(notdocker compose restart) is required to pick up env var changesNODE_ENVno longer affects logging detailSupersedes #2030 (taking over from @AmirSaudagar55).
Linked issue
medic/cht-core#10357
Test plan
shared-libs/logger/src/node-logger.js.envfile approach is consistent with existing CHT Docker deployment docs