Class MCRLoggingCommands

java.lang.Object
org.mycore.frontend.cli.MCRAbstractCommands
org.mycore.frontend.cli.MCRLoggingCommands
All Implemented Interfaces:
MCRExternalCommandInterface

@MCRCommandGroup(name="Logging Commands") public class MCRLoggingCommands extends MCRAbstractCommands
Use this class to change log levels of java packages and classes.
Author:
shermann
  • Constructor Details

    • MCRLoggingCommands

      public MCRLoggingCommands()
  • Method Details

    • changeLogLevel

      @MCRCommand(syntax="change log level of {0} to {1}", help="{0} the package or class name for which to change the log level, {1} the log level to set.", order=10) public static void changeLogLevel(String name, String logLevelToSet)
      Parameters:
      name - the name of the java class or java package to set the log level for
      logLevelToSet - the log level to set e.g. TRACE, DEBUG, INFO, WARN, ERROR and FATAL, providing any other value will lead to DEBUG as new log level