Log Management#
Prerequisite: Know how to use the Janssen CLI in interactive mode
Using Janssen CLI, you can easily update the logging configuration. Just go with option 11 from Main Menu, It will display two options.
Configuration – Logging
-----------------------
1 Returns Jans Authorization Server logging settings
2 Updates Jans Authorization Server logging settings
The first option returns the current logging configuration.
Returns Jans Authorization Server logging settings
--------------------------------------------------
Please wait while retreiving data ...
Getting access token for scope https://jans.io/oauth/config/logging.readonly
{
"loggingLevel": "INFO",
"loggingLayout": "text",
"httpLoggingEnabled": false,
"disableJdkLogger": true,
"enabledOAuthAuditLogging": false,
"externalLoggerConfiguration": null,
"httpLoggingExcludePaths": null
}
logging level INFO to DEBUG
and enabled enabledOAuthAuditLogging
.
Returns Jans Authorization Server logging settings
--------------------------------------------------
Please wait while retreiving data ...
Getting access token for scope https://jans.io/oauth/config/logging.readonly
«Logging level for Jans Authorization Server logger. Type: string»
loggingLevel [INFO]: DEBUG
«Logging layout used for Jans Authorization Server loggers. Type: string»
loggingLayout [text]:
«To enable http request/response logging. Type: boolean»
httpLoggingEnabled [false]:
«To enable/disable Jdk logging. Type: boolean»
disableJdkLogger [true]:
«To enable/disable OAuth audit logging. Type: boolean»
enabledOAuthAuditLogging [false]: true
Please enter a(n) boolean value: _true, _false
enabledOAuthAuditLogging [false]: _true
«Path to external log4j2 configuration file. Type: string»
externalLoggerConfiguration:
«List of paths to exclude from logger. Type: array of string separated by _,»
Example: /auth/img, /auth/stylesheet
httpLoggingExcludePaths:
Obtained Data:
{
"loggingLevel": "DEBUG",
"loggingLayout": "text",
"httpLoggingEnabled": false,
"disableJdkLogger": true,
"enabledOAuthAuditLogging": true,
"externalLoggerConfiguration": null,
"httpLoggingExcludePaths": null
}
Continue? y
Getting access token for scope https://jans.io/oauth/config/logging.write
Please wait while posting data ...
{
"loggingLevel": "DEBUG",
"loggingLayout": "text",
"httpLoggingEnabled": false,
"disableJdkLogger": true,
"enabledOAuthAuditLogging": true,
"externalLoggerConfiguration": null,
"httpLoggingExcludePaths": null
}