refactor: configure nestjs and credo-ts loggers using one env variable LOG_LEVEL OP#243
Description
Credo-ts has these log levels
test = 0,
trace = 1,
debug = 2,
info = 3,
warn = 4,
error = 5,
fatal = 6,
off = 7
Using appropriate number in LOG_LEVEL
env, the nestjs Logger and Credo-ts logger now will have the same log levels.
Due to different support level in nestjs and credo-ts I did mapping between two log levels
Related issues
https://plan.vereign.com/projects/vbd/work_packages/243
Testing
In order to test this feature you need to deploy ocm-engine with different LOG_LEVEL
and check logs from pod container.
Checklist
-
I have updated the documentation (if necessary) -
I have added unit tests for new functionality (if applicable) -
My code follows the style guidelines of this project -
I have tested this code on my local machine before submitting this MR