@TaskMeta(id="detailed-logs",name="Detailed Log Sampling",description="takes a detailed log sample over a given time by escalating log levels of specified loggers",maskable=true,intensive=true,taskParameters={@TaskParamMeta(name="output",description="output filename of the temporary log files archive",configurable=false,defaultValue="detailed_logs_[timestamp].tar.gz"),@TaskParamMeta(name="period",description="period (in seconds) over which to collect detailed logs",configurable=true,defaultValue="60"),@TaskParamMeta(name="level",description="level to which logging should be escalated for sampling",configurable=true,defaultValue="DEBUG"),@TaskParamMeta(name="logger",description="logger whose level should be escalated for sampling",configurable=true,defaultValue="org.adroitlogic")}) public class DetailedLogArchiveTask extends LogDirArchiveTask
Modifier and Type | Field and Description |
---|---|
(package private) static String |
DEFAULT_DETAILED_LOG_LEVEL |
(package private) static int |
DEFAULT_LOG_PERIOD
default run configurations
|
(package private) static org.apache.logging.log4j.Level |
DEFAULT_STANDARD_LOG_LEVEL |
(package private) static String |
LOG_LEVEL |
(package private) static String |
LOG_PERIOD
parameter names
|
(package private) static String |
LOGGER_NAME |
(package private) static String |
ROOT_LOGGER |
serverConfig
Constructor and Description |
---|
DetailedLogArchiveTask() |
Modifier and Type | Method and Description |
---|---|
Status |
execute(String outputRoot,
Map<String,String> parameters)
Executes the core logic of the task.
|
getMaskableFileTypes, loadSourceFiles
getDescription, getId, getName, getParameterDetails, isIntensive, isMaskable, setDescription, setId, setIntensive, setMaskable, setName, setParameterDetails, setServerConfig, toView
static final String LOG_PERIOD
static final String LOG_LEVEL
static final String LOGGER_NAME
static final int DEFAULT_LOG_PERIOD
static final String ROOT_LOGGER
static final String DEFAULT_DETAILED_LOG_LEVEL
static final org.apache.logging.log4j.Level DEFAULT_STANDARD_LOG_LEVEL
public Status execute(String outputRoot, Map<String,String> parameters) throws Exception
TaskBase
File.separator
-terminated path
defined by the outputRoot
parameter.
Any exceptions should be thrown to the base method, for maintaining proper exception notification.execute
in class ArchiveTask
outputRoot
- root directory for task output file(s)parameters
- runtime parameters for the taskException
- in case of a failure to execute the taskCopyright © 2016–2019 AdroitLogic. All rights reserved.