Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Change the log level at runtime

License

Notifications You must be signed in to change notification settings

lightszentip/logmanagement-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Build Status

The plugin can change the log level for slf4j logging on the fly or get informations about logger and log levels.

You can use it with:

LogManagementPluginFactory.getLogManagementPlugin()

Change the log level for example:

LogManagementPluginFactory.getLogManagementPlugin().changeRootLogLevel(logLevel)

Example: https://github.com/lightszentip/logmanagement-plugin-example-app

To get the artifact from Repository

<dependency>
  <groupId>com.lightszentip.module</groupId>
  <artifactId>logmanagement-plugin</artifactId>
  <version>0.9.1</version>
</dependency>