public interface Logger extends Closeable
| Modifier and Type | Method and Description |
|---|---|
default void |
close() |
void |
log(String message) |
default void |
log(String template,
Object... args)
Substitutes each
%s in template with an argument. |
void log(String message)
default void log(String template, Object... args)
%s in template with an argument. Arguments without place holder will
be placed at the end of template.
This is a default method to avoid incompatibilities with older logger interface.
template - a non-null template string containing 0 or more %s placeholders.args - the arguments to be substituted into the message template.default void close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOExceptionCopyright © 2011–2020. All rights reserved.