Logging in @krakentech/blueprint-auth
The @krakentech/blueprint-auth package includes a logging system that allows
consumers to control the verbosity of logs emitted by the package. This is
particularly useful for debugging and monitoring authentication-related
processes in your application.
Configuring Log Levels​
You can set the log level by defining the BP_AUTH_LOG_LEVEL environment
variable in your application's environment. The available log levels are:
NONE: No logs will be emitted.ERROR: Only error messages will be logged.WARN: Warnings and error messages will be logged.INFO: Informational messages, warnings, and error messages will be logged.DEBUG: All messages, including debug information, will be logged.
By default, the log level is set to INFO, which means that INFO, WARN, and
ERROR messages will be logged since they are of higher severity.