Package aQute.libg.reporter.slf4j
Class Slf4jReporter
java.lang.Object
aQute.libg.reporter.ReporterAdapter
aQute.libg.reporter.slf4j.Slf4jReporter
-
Nested Class Summary
Nested classes/interfaces inherited from interface aQute.service.reporter.Report
Report.Location
Nested classes/interfaces inherited from interface aQute.service.reporter.Reporter
Reporter.SetLocation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an error.Dedicated message for an exception.static Reporter
getAlternative
(Class<?> class1, Reporter reporter) void
Deprecated.Use SLF4J Logger.info() instead.void
Create a warning.Create a warning.Methods inherited from class aQute.libg.reporter.ReporterAdapter
addErrors, addWarnings, check, getErrors, getInfo, getInfo, getLocation, getMessages, getOut, getWarnings, isExceptions, isOk, isPedantic, isPerfect, isTrace, report, run, setExceptions, setPedantic, setTrace
-
Field Details
-
logger
private final org.slf4j.Logger logger
-
-
Constructor Details
-
Slf4jReporter
-
Slf4jReporter
public Slf4jReporter() -
Slf4jReporter
public Slf4jReporter(org.slf4j.Logger logger)
-
-
Method Details
-
error
Description copied from interface:Reporter
Create 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:
error
in interfaceReporter
- Overrides:
error
in 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:Reporter
Create 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:
warning
in interfaceReporter
- Overrides:
warning
in 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:Reporter
Create 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:
trace
in interfaceReporter
- Overrides:
trace
in classReporterAdapter
- Parameters:
format
- The format of the errorargs
- The arguments of the error
-
progress
Deprecated.Use SLF4J Logger.info() instead.Description copied from interface:Reporter
Create 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:
progress
in interfaceReporter
- Overrides:
progress
in 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:Reporter
Dedicated message for an exception.- Specified by:
exception
in interfaceReporter
- Overrides:
exception
in classReporterAdapter
- Parameters:
t
- The exceptionformat
- The format of the messageargs
- The arguments
-
getAlternative
-