Class LogLevelChangerUtils

java.lang.Object
com.bobocode.bring.web.actuator.utils.LogLevelChangerUtils

public class LogLevelChangerUtils extends Object
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 Details

    • LogLevelChangerUtils

      public LogLevelChangerUtils()
  • Method Details

    • changeLogLevel

      public static void changeLogLevel(String packageName, String newLevel)
      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.