Package aQute.libg.reporter.slf4j
Class Slf4jReporter
- java.lang.Object
-
- aQute.libg.reporter.ReporterAdapter
-
- aQute.libg.reporter.slf4j.Slf4jReporter
-
public class Slf4jReporter extends ReporterAdapter
-
-
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 Modifier and Type Field Description private org.slf4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description Slf4jReporter()Slf4jReporter(java.lang.Class<?> loggingClass)Slf4jReporter(org.slf4j.Logger logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Reporter.SetLocationerror(java.lang.String format, java.lang.Object... args)Create an error.Reporter.SetLocationexception(java.lang.Throwable t, java.lang.String format, java.lang.Object... args)Dedicated message for an exception.static ReportergetAlternative(java.lang.Class<?> class1, Reporter reporter)voidprogress(float progress, java.lang.String format, java.lang.Object... args)Deprecated.Use SLF4J Logger.info() instead.voidtrace(java.lang.String format, java.lang.Object... args)Create a warning.Reporter.SetLocationwarning(java.lang.String format, java.lang.Object... args)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
-
-
-
-
Method Detail
-
error
public Reporter.SetLocation error(java.lang.String format, java.lang.Object... args)
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
public Reporter.SetLocation warning(java.lang.String format, java.lang.Object... args)
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
public void trace(java.lang.String format, java.lang.Object... args)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 public void progress(float progress, java.lang.String format, java.lang.Object... args)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
public Reporter.SetLocation exception(java.lang.Throwable t, java.lang.String format, java.lang.Object... args)
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
-
-