public class Slf4jReporter extends ReporterAdapter
Reporter.SetLocation
Report.Location
Modifier and Type | Field and Description |
---|---|
(package private) org.slf4j.Logger |
logger |
Constructor and Description |
---|
Slf4jReporter() |
Slf4jReporter(java.lang.Class<?> loggingClass) |
Modifier and Type | Method and Description |
---|---|
Reporter.SetLocation |
error(java.lang.String format,
java.lang.Object... args)
Create an error.
|
Reporter.SetLocation |
exception(java.lang.Throwable t,
java.lang.String format,
java.lang.Object... args)
Dedicated message for an exception.
|
static Reporter |
getAlternative(java.lang.Class<?> class1,
Reporter reporter) |
void |
progress(float progress,
java.lang.String format,
java.lang.Object... args)
Deprecated.
Use SLF4J
Logger.info(aQute.libg.slf4j.GradleLogging.LIFECYCLE)
instead.
|
void |
trace(java.lang.String format,
java.lang.Object... args)
Deprecated.
Use SLF4J Logger.debug instead.
|
Reporter.SetLocation |
warning(java.lang.String format,
java.lang.Object... args)
Create a warning.
|
addErrors, addWarnings, check, getErrors, getInfo, getInfo, getLocation, getMessages, getOut, getWarnings, isExceptions, isOk, isPedantic, isPerfect, isTrace, report, run, setExceptions, setPedantic, setTrace
public Slf4jReporter(java.lang.Class<?> loggingClass)
public Slf4jReporter()
public Reporter.SetLocation error(java.lang.String format, java.lang.Object... args)
Reporter
error
in interface Reporter
error
in class ReporterAdapter
format
- The format of the errorargs
- The arguments of the errorpublic Reporter.SetLocation warning(java.lang.String format, java.lang.Object... args)
Reporter
warning
in interface Reporter
warning
in class ReporterAdapter
format
- The format of the errorargs
- The arguments of the error@Deprecated public void trace(java.lang.String format, java.lang.Object... args)
Reporter
trace
in interface Reporter
trace
in class ReporterAdapter
format
- The format of the errorargs
- The arguments of the error@Deprecated public void progress(float progress, java.lang.String format, java.lang.Object... args)
Reporter
progress
in interface Reporter
progress
in class ReporterAdapter
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 errorpublic Reporter.SetLocation exception(java.lang.Throwable t, java.lang.String format, java.lang.Object... args)
Reporter
exception
in interface Reporter
exception
in class ReporterAdapter
t
- The exceptionformat
- The format of the messageargs
- The arguments