Package io.perl.logger.impl
Class DefaultLogger
java.lang.Object
io.perl.logger.impl.ResultsLogger
io.perl.logger.impl.DefaultLogger
- All Implemented Interfaces:
PerformanceLogger,Print,ReportLatency
- Direct Known Subclasses:
DefaultPrometheusLogger
Simple textual results logger that prints the formatted summary to stdout.
This concrete logger is a thin convenience wrapper around
ResultsLogger that exposes two constructors: a fully-configurable
constructor and a no-argument convenience constructor that uses default
values from configuration. Use this logger when you want human-readable
results on the console or redirected to a file.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor DefaultLogger takes no arguments but initialize all values with default values.DefaultLogger(String header, double[] percentiles, TimeUnit latencyTimeUnit, long minLatency, long maxLatency) Constructor DefaultLogger pass all values to its super class. -
Method Summary
Methods inherited from class io.perl.logger.impl.ResultsLogger
appendResultString, getMaxLatency, getMinLatency, getPercentileNames, getPercentiles, getPrefix, getTimeUnit, print, printTotal, setMaxLatency, setMinLatency, setPercentiles, setPrefix, setTimeUnitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.perl.logger.PerformanceLogger
getPrintingIntervalSeconds, recordLatency
-
Constructor Details
-
DefaultLogger
public DefaultLogger(String header, double[] percentiles, TimeUnit latencyTimeUnit, long minLatency, long maxLatency) Constructor DefaultLogger pass all values to its super class.- Parameters:
header- Stringpercentiles- double[]latencyTimeUnit- TimeUnitminLatency- longmaxLatency- long
-
DefaultLogger
public DefaultLogger()Constructor DefaultLogger takes no arguments but initialize all values with default values.
-