Logger
Defines logger.
- Optimized for pino.
- Other loggers can be used if converted.
- If omitted, use
consoleLogger("info")
. - If set to
null
, disable logging. - Ref: OIDCClientLogger
Log level policy
silent
:- Used to output tokens and other sensitive data. Only display explicitly if needed.
trace
:- Functions and methods executed.
debug
:- Debug info.
info
:- (TBA)
warn
:- Outputs for unexpected calls, tampering, and possible attacks.
error
:- Caught exceptions, etc.
fatal
:- Currently unused.
Using pino
Assign pino directly.
Console logger
Using Console.
Custom logger
See OIDCClientLogger and consoleLogger
implementation.