public class Log4jDestination extends AbstractDestination
Modifier and Type | Class and Description |
---|---|
static class |
Log4jDestination.Level
Log4j level.
|
Constructor and Description |
---|
Log4jDestination() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the destination.
|
Log4jDestination.Level |
getLevel()
Gets the current logging level.
|
void |
open()
Opens the destination for reporting.
|
void |
report(Measurement measurement)
Reports the measurement using log4j at the configured level.
|
Log4jDestination |
setLevel(Log4jDestination.Level level)
Sets the level at which the destination should log the measurement results.
|
getParentReporter, open
public void open()
AbstractDestination
open
in class AbstractDestination
public void close()
Destination
public void report(Measurement measurement) throws ReportingException
measurement
- A measurement to be reported.ReportingException
- When an error occurred during reporting the measurement like no space left on device. The root cause should be encapsulated.public Log4jDestination.Level getLevel()
public Log4jDestination setLevel(Log4jDestination.Level level)
level
- Level at which the destination logs.Copyright © 2010–2017 PerfCake Community. All rights reserved.