public class LogAdapter extends java.lang.Object implements LogService
Constructor and Description |
---|
LogAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.Object site,
java.util.function.Consumer<java.io.PrintWriter> messageWriter)
Logs a debug message.
|
void |
error(java.lang.Object site,
java.util.function.Consumer<java.io.PrintWriter> messageWriter)
Logs an error.
|
void |
info(java.lang.Object site,
java.util.function.Consumer<java.io.PrintWriter> messageWriter)
Logs an informational message.
|
void |
warn(java.lang.Object site,
java.util.function.Consumer<java.io.PrintWriter> messageWriter)
Logs a warning.
|
public void debug(java.lang.Object site, java.util.function.Consumer<java.io.PrintWriter> messageWriter)
LogService
debug
in interface LogService
site
- where the event occurred or the object the event is
associated to.messageWriter
- writes the content of the log message.public void info(java.lang.Object site, java.util.function.Consumer<java.io.PrintWriter> messageWriter)
LogService
info
in interface LogService
site
- where the event occurred or the object the event is
associated to.messageWriter
- writes the content of the log message.public void warn(java.lang.Object site, java.util.function.Consumer<java.io.PrintWriter> messageWriter)
LogService
warn
in interface LogService
site
- where the event occurred or the object the event is
associated to.messageWriter
- writes the content of the log message.public void error(java.lang.Object site, java.util.function.Consumer<java.io.PrintWriter> messageWriter)
LogService
error
in interface LogService
site
- where the event occurred or the object the event is
associated to.messageWriter
- writes the content of the log message.