feat: add default logger level setting to set the logger level to dis… #2451
+4
−0
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.
Relates to
No linked issue.
Risks
Low.
This change introduces a default logger level, which affects logging outputs. Potential risks include unexpected logging behavior if the
DEFAULT_LOG_LEVEL
environment variable is misconfigured or missing.Background
What does this PR do?
This PR introduces a default logger level setting, allowing developers to set the logging verbosity through a
DEFAULT_LOG_LEVEL
environment variable. If the variable is not set, the logger defaults to "info" level.What kind of change is this?
Documentation changes needed?
My changes require a change to the project documentation.
DEFAULT_LOG_LEVEL
environment variable in the relevant setup/configuration documentation.Testing
Where should a reviewer start?
.env.example
for the new environment variable.packages/core/src/logger.ts
for setting the logger level.Detailed testing steps
DEFAULT_LOG_LEVEL
to your.env
file and set it to a specific value (e.g.,debug
).DEFAULT_LOG_LEVEL
from.env
and restart the application.info
level.Screenshots
No UI changes.
Deploy Notes
No specific deployment changes. Ensure the
.env
file includes the newDEFAULT_LOG_LEVEL
variable, if desired, for customized logging behavior.Database changes
None.
Deployment instructions
No additional instructions. Standard deployment process applies.