public class LogConfigurationTask extends Task
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. |
duration | An optional Duration to configure the level. If not provided, the log level will be set forever. |
Constructor and Description |
---|
LogConfigurationTask()
Creates a new LogConfigurationTask.
|
LogConfigurationTask(org.slf4j.ILoggerFactory loggerContext)
Creates a new LogConfigurationTask with the given
ILoggerFactory instance. |
Modifier and Type | Method and Description |
---|---|
void |
execute(Map<String,List<String>> parameters,
PrintWriter output)
Executes the task.
|
getName, getResponseContentType
public LogConfigurationTask()
public LogConfigurationTask(org.slf4j.ILoggerFactory loggerContext)
ILoggerFactory
instance.
Use LogConfigurationTask()
instead.loggerContext
- a ILoggerFactory
instancepublic void execute(Map<String,List<String>> parameters, PrintWriter output) throws Exception
Task
execute
in class Task
parameters
- the query string parametersoutput
- a PrintWriter
wrapping the output stream of the taskException
- if something goes wrongCopyright © 2019. All rights reserved.