Logger-config is a module in the Light-4j framework that will use to get the loggers and their current logging levels. It can also change the logging level for given loggers at runtime (Example: Change logging level to DEBUG for “com.networknt” logger for troubleshooting purpose). The user can also create a brand new logger with a level for debugging issues for a specific package on the target server.
Note: This feature is only supposed to be used in a development environment without security enabled. On production, the security must be enabled so that only authorized users can update the logging level through API calls. It is highly recommended to leverage the light-controller(standard) or light-portal(enterprise) to manage all the runtime instances and update them through the UI.
There are three Logger Handlers available in logging module.
LoggerGetHandler : This handler will provide the all available loggers & their current logging levels.