Package org.eclipse.sisu.inject
Interface Logs.Sink
- All Known Implementing Classes:
Logs.ConsoleSink
,Logs.JULSink
,Logs.SLF4JSink
- Enclosing class:
Logs
private static interface Logs.Sink
Something that accepts formatted messages.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Accepts a debug message and optional exception cause.boolean
boolean
void
Accepts a trace message and optional exception cause.void
Accepts a warning message and optional exception cause.
-
Method Details
-
isTraceEnabled
boolean isTraceEnabled()- Returns:
true
if trace is enabled; otherwisefalse
-
isDebugEnabled
boolean isDebugEnabled()- Returns:
true
if debug is enabled; otherwisefalse
-
trace
Accepts a trace message and optional exception cause.- Parameters:
message
- The trace messagecause
- The exception cause
-
debug
Accepts a debug message and optional exception cause.- Parameters:
message
- The debug messagecause
- The exception cause
-
warn
Accepts a warning message and optional exception cause.- Parameters:
message
- The warning messagecause
- The exception cause
-