Package io.cucumber.core.logging
Interface Logger
-
public interface LoggerLogs messages toLogger.The methods correspond to
Levelin JUL:errormaps toLevel.SEVEREwarnmaps toLevel.WARNINGinfomaps toLevel.INFOconfigmaps toLevel.CONFIGdebugmaps toLevel.FINEtracemaps toLevel.FINER
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfig(Throwable throwable, Supplier<String> message)Log themessageandthrowableat config level.voidconfig(Supplier<String> message)Log themessageat config level.voiddebug(Throwable throwable, Supplier<String> message)Logmessageandthrowableat debug level.voiddebug(Supplier<String> message)Log themessageat debug level.voiderror(Throwable throwable, Supplier<String> message)Log themessageandthrowableat error level.voiderror(Supplier<String> message)Log themessageat error level.voidinfo(Throwable throwable, Supplier<String> message)Log themessageandthrowableat info level.voidinfo(Supplier<String> message)Log themessageat info level.voidtrace(Throwable throwable, Supplier<String> message)Log themessageandthrowableat trace level.voidtrace(Supplier<String> message)Log themessageat trace level.voidwarn(Throwable throwable, Supplier<String> message)Log themessageandthrowableat warning level.voidwarn(Supplier<String> message)Log themessageat warning level.
-
-
-
Method Detail
-
error
void error(Supplier<String> message)
Log themessageat error level.- Parameters:
message- The message to log.
-
error
void error(Throwable throwable, Supplier<String> message)
Log themessageandthrowableat error level.- Parameters:
throwable- The throwable to log.message- The message to log.
-
warn
void warn(Supplier<String> message)
Log themessageat warning level.- Parameters:
message- The message to log.
-
warn
void warn(Throwable throwable, Supplier<String> message)
Log themessageandthrowableat warning level.- Parameters:
throwable- The throwable to log.message- The message to log.
-
info
void info(Supplier<String> message)
Log themessageat info level.- Parameters:
message- The message to log.
-
info
void info(Throwable throwable, Supplier<String> message)
Log themessageandthrowableat info level.- Parameters:
throwable- The throwable to log.message- The message to log.
-
config
void config(Supplier<String> message)
Log themessageat config level.- Parameters:
message- The message to log.
-
config
void config(Throwable throwable, Supplier<String> message)
Log themessageandthrowableat config level.- Parameters:
throwable- The throwable to log.message- The message to log.
-
debug
void debug(Supplier<String> message)
Log themessageat debug level.- Parameters:
message- The message to log.
-
debug
void debug(Throwable throwable, Supplier<String> message)
Logmessageandthrowableat debug level.- Parameters:
throwable- The throwable to log.message- The message to log.
-
trace
void trace(Supplier<String> message)
Log themessageat trace level.- Parameters:
message- The message to log.
-
-