Interface Logger
-
- All Known Implementing Classes:
BndLogger
,MavenLogger
public interface Logger
Generic interface for logging various messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
debug(@NotNull String message)
Log a debug message.void
error(@NotNull String message)
Log an error message.void
error(@NotNull String message, @NotNull Throwable t)
Log an error message, together with theThrowable
that caused it.void
info(@NotNull String message)
Log an info message.void
warn(@NotNull String message)
Log a warning message.void
warn(@NotNull String message, @NotNull Throwable t)
Log a warning message, together with theThrowable
that caused it.
-
-
-
Method Detail
-
error
void error(@NotNull @NotNull String message)
Log an error message.- Parameters:
message
- the message
-
error
void error(@NotNull @NotNull String message, @NotNull @NotNull Throwable t)
Log an error message, together with theThrowable
that caused it.- Parameters:
message
- the messaget
- the throwable that caused this error message
-
info
void info(@NotNull @NotNull String message)
Log an info message.- Parameters:
message
- the messae
-
warn
void warn(@NotNull @NotNull String message)
Log a warning message.- Parameters:
message
- the message
-
warn
void warn(@NotNull @NotNull String message, @NotNull @NotNull Throwable t)
Log a warning message, together with theThrowable
that caused it.- Parameters:
message
- the messaget
- the throwable that caused this error message
-
debug
void debug(@NotNull @NotNull String message)
Log a debug message.- Parameters:
message
- the message
-
-