Class Slf4jReporter
java.lang.Object
aQute.libg.reporter.ReporterAdapter
aQute.libg.reporter.slf4j.Slf4jReporter
-
Nested Class Summary
Nested classes/interfaces inherited from interface Report
Report.LocationNested classes/interfaces inherited from interface Reporter
Reporter.SetLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an error.Dedicated message for an exception.static ReportergetAlternative(Class<?> class1, Reporter reporter) voidDeprecated.Use SLF4J Logger.info() instead.voidCreate a warning.Create a warning.Methods inherited from class ReporterAdapter
addErrors, addWarnings, check, getErrors, getInfo, getInfo, getLocation, getMessages, getOut, getWarnings, isExceptions, isOk, isPedantic, isPerfect, isTrace, report, run, setExceptions, setPedantic, setTrace
-
Constructor Details
-
Slf4jReporter
-
Slf4jReporter
public Slf4jReporter() -
Slf4jReporter
public Slf4jReporter(org.slf4j.Logger logger)
-
-
Method Details
-
error
Description copied from interface:ReporterCreate an error. Implementations must ensure that the given args are not prevented from garbage collecting. The args must have a proper toString method.- Specified by:
errorin interfaceReporter- Overrides:
errorin classReporterAdapter- Parameters:
format- The format of the errorargs- The arguments of the error- Returns:
- a SetLocation to set the location
-
warning
Description copied from interface:ReporterCreate a warning. Implementations must ensure that the given args are not prevented from garbage collecting. The args must have a proper toString method.- Specified by:
warningin interfaceReporter- Overrides:
warningin classReporterAdapter- Parameters:
format- The format of the errorargs- The arguments of the error- Returns:
- a SetLocation to set the location
-
trace
Description copied from interface:ReporterCreate a warning. Implementations must ensure that the given args are not prevented from garbage collecting. The args must have a proper toString method.- Specified by:
tracein interfaceReporter- Overrides:
tracein classReporterAdapter- Parameters:
format- The format of the errorargs- The arguments of the error
-
progress
Deprecated.Use SLF4J Logger.info() instead.Description copied from interface:ReporterCreate a warning. Implementations must ensure that the given args are not prevented from garbage collecting. The args must have a proper toString method.- Specified by:
progressin interfaceReporter- Overrides:
progressin classReporterAdapter- Parameters:
progress- A value between 0 and 1 indicating the progress. 0 is starting and >=1 is done.format- The format of the errorargs- The arguments of the error
-
exception
Description copied from interface:ReporterDedicated message for an exception.- Specified by:
exceptionin interfaceReporter- Overrides:
exceptionin classReporterAdapter- Parameters:
t- The exceptionformat- The format of the messageargs- The arguments
-
getAlternative
-