Export Flogger api for plugins

Still export the slf4j api so that plugins are not forced to migrate
immediately.

Change-Id: I873bbb18909e16177cd4329be36cdf4226990977
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2018-05-08 11:19:37 +02:00
parent 6ed96ca40b
commit 8860e8e0ad
2 changed files with 3 additions and 2 deletions

View File

@@ -765,7 +765,7 @@ ssh command.
[source, java]
----
public class SshModule extends AbstractModule {
private static final Logger log = LoggerFactory.getLogger(SshModule.class);
private static final FluentLogger logger = FluentLogger.forEnclosingClass();
@Override
protected void configure() {
@@ -778,7 +778,7 @@ public class SshModule extends AbstractModule {
public static class BanOptions implements DynamicOptions.DynamicBean {
@Option(name = "--log", aliases = { "-l" }, usage = "Say Hello in the Log")
private void parse(String arg) {
log.error("Say Hello in the Log " + arg);
logger.atSevere().log("Say Hello in the Log %s", arg);
}
}
----