github-cognito-openid-wrapper
github-cognito-openid-wrapper copied to clipboard
Allow configuration of log level
The log level is currently hard-coded in logger.js
. An improvement would be to allow this to be configured without code changes.
The approach used in https://github.com/TimothyJones/github-cognito-openid-wrapper/pull/17 is nice, where the deployment stage and SLS_DEBUG
state can also inform the log level.