Class LogConfigurationTask


  • public class LogConfigurationTask
    extends Task
    Sets the logging level for a number of loggers

    Parameters:

    Name Description
    logger One or more logger names to be configured with the specified log level.
    level An optional Level to configure. If not provided, the log level will be set to null.

    • Constructor Detail

      • LogConfigurationTask

        public LogConfigurationTask()
        Creates a new LogConfigurationTask.
      • LogConfigurationTask

        public LogConfigurationTask​(org.slf4j.ILoggerFactory loggerContext)
        Creates a new LogConfigurationTask with the given ILoggerFactory instance.

        Use LogConfigurationTask() instead.

        Parameters:
        loggerContext - a ILoggerFactory instance
    • Method Detail

      • execute

        public void execute​(com.google.common.collect.ImmutableMultimap<String,​String> parameters,
                            PrintWriter output)
                     throws Exception
        Description copied from class: Task
        Executes the task.
        Specified by:
        execute in class Task
        Parameters:
        parameters - the query string parameters
        output - a PrintWriter wrapping the output stream of the task
        Throws:
        Exception - if something goes wrong