From f720493e4d85a6988a98c0e070cd3d871d961ca6 Mon Sep 17 00:00:00 2001 From: Kengo TODA Date: Thu, 5 Mar 2020 13:18:18 +0800 Subject: [PATCH] refactor: make logger creation copy-paste friendly --- src/main/groovy/com/github/spotbugs/snom/SpotBugsPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/com/github/spotbugs/snom/SpotBugsPlugin.java b/src/main/groovy/com/github/spotbugs/snom/SpotBugsPlugin.java index d196d358..59470b48 100644 --- a/src/main/groovy/com/github/spotbugs/snom/SpotBugsPlugin.java +++ b/src/main/groovy/com/github/spotbugs/snom/SpotBugsPlugin.java @@ -27,7 +27,7 @@ public class SpotBugsPlugin implements Plugin { public static final String SLF4J_CONFIG_NAME = "spotbugsSlf4j"; public static final String EXTENSION_NAME = "spotbugs"; - private final Logger log = LoggerFactory.getLogger(SpotBugsPlugin.class); + private final Logger log = LoggerFactory.getLogger(getClass()); @Override public void apply(Project project) {