Class LogLevelChangerUtils
java.lang.Object
com.bobocode.bring.web.actuator.utils.LogLevelChangerUtils
Utility class for changing the log level of a specific package.
It provides a method to adjust the logging level for a given package name.
This class is used by the ActuatorController to dynamically modify log levels at runtime.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
changeLogLevel
(String packageName, String newLevel) Changes the log level for the specified package.
-
Constructor Details
-
LogLevelChangerUtils
public LogLevelChangerUtils()
-
-
Method Details
-
changeLogLevel
Changes the log level for the specified package.- Parameters:
packageName
- The name of the package for which to change the log level.newLevel
- The new log level to set.
-