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:
@@ -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);
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user