public class Slf4jReporter extends ReporterAdapter
Reporter.SetLocation
Report.Location
Constructor and Description |
---|
Slf4jReporter() |
Slf4jReporter(Class<?> loggingClass) |
Modifier and Type | Method and Description |
---|---|
Reporter.SetLocation |
error(String format,
Object... args)
Create an error.
|
Reporter.SetLocation |
exception(Throwable t,
String format,
Object... args)
Dedicated message for an exception.
|
static Reporter |
getAlternative(Class<?> class1,
Reporter reporter) |
void |
progress(float progress,
String format,
Object... args)
Deprecated.
Use SLF4J
Logger.info(aQute.libg.slf4j.GradleLogging.LIFECYCLE)
instead.
|
void |
trace(String format,
Object... args)
Deprecated.
Use SLF4J Logger.debug instead.
|
Reporter.SetLocation |
warning(String format,
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(Class<?> loggingClass)
public Slf4jReporter()
public Reporter.SetLocation error(String format, 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(String format, 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(String format, 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, String format, 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(Throwable t, String format, Object... args)
Reporter
exception
in interface Reporter
exception
in class ReporterAdapter
t
- The exceptionformat
- The format of the messageargs
- The argumentsCopyright © 2021 aQute SARL. All rights reserved.