Class Log4J

All Implemented Interfaces:
Script

public class Log4J extends ScriptImpl
Script to change log level of certain loggers at runtime Parameters: 1. full qualified class name where the logger is used 2. log level as defined by log4j - INFO - DEBUG - WARN - ERROR - FATAL - OFF - TRACE - ALL For log level names see also the log4j documentation
Author:
madmetzger
  • Constructor Details

    • Log4J

      public Log4J()
  • Method Details

    • execute

      public void execute(Player admin, List<String> args)
      Description copied from interface: Script
      Executes this script.
      Specified by:
      execute in interface Script
      Overrides:
      execute in class ScriptImpl
      Parameters:
      admin - the admin who load it or null on server start.
      args - the arguments the admin specified or null on server start.