Use class loggers without the fqn for non-debug logging (#9012)

This commit is contained in:
Jake Potrebic
2023-03-20 01:23:52 -07:00
parent c54215c1b2
commit 4015d08acf
2 changed files with 19 additions and 19 deletions

View File

@@ -483,7 +483,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+public class PluginInitializerManager {
+
+ private static final Logger LOGGER = LogUtils.getLogger();
+ private static final Logger LOGGER = LogUtils.getClassLogger();
+ private static PluginInitializerManager impl;
+ private final Path pluginDirectory;
+ private final Path updateDirectory;
@@ -2971,7 +2971,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+public class MultiRuntimePluginProviderStorage extends ServerPluginProviderStorage {
+
+ private static final Logger LOGGER = LogUtils.getLogger();
+ private static final Logger LOGGER = LogUtils.getClassLogger();
+ private final List<JavaPlugin> provided = new ArrayList<>();
+
+ @Override
@@ -4989,7 +4989,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+public class DirectoryProviderSource extends FileProviderSource {
+
+ public static final DirectoryProviderSource INSTANCE = new DirectoryProviderSource();
+ private static final Logger LOGGER = LogUtils.getLogger();
+ private static final Logger LOGGER = LogUtils.getClassLogger();
+
+ public DirectoryProviderSource() {
+ super("File '%s'"::formatted);
@@ -5197,7 +5197,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+public class PluginFlagProviderSource implements ProviderSource<List<File>> {
+
+ public static final PluginFlagProviderSource INSTANCE = new PluginFlagProviderSource();
+ private static final Logger LOGGER = LogUtils.getLogger();
+ private static final Logger LOGGER = LogUtils.getClassLogger();
+ private final FileProviderSource providerSource = new FileProviderSource("File '%s' specified through 'add-plugin' argument"::formatted);
+
+ @Override
@@ -6124,7 +6124,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+public class BootstrapProviderStorage extends SimpleProviderStorage<PluginBootstrap> {
+
+ private static final Logger LOGGER = LogUtils.getLogger();
+ private static final Logger LOGGER = LogUtils.getClassLogger();
+
+ public BootstrapProviderStorage() {
+ super(new ModernPluginLoadingStrategy<>(new ProviderConfiguration<>() {
@@ -6229,7 +6229,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+public class ServerPluginProviderStorage extends ConfiguredProviderStorage<JavaPlugin> {
+
+ private static final Logger LOGGER = LogUtils.getLogger();
+ private static final Logger LOGGER = LogUtils.getClassLogger();
+
+ public ServerPluginProviderStorage() {
+ super(new ProviderConfiguration<>() {
@@ -6300,7 +6300,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+public abstract class SimpleProviderStorage<T> implements ProviderStorage<T> {
+
+ private static final Logger LOGGER = LogUtils.getLogger();
+ private static final Logger LOGGER = LogUtils.getClassLogger();
+
+ protected final List<PluginProvider<T>> providers = new ArrayList<>();
+ protected ProviderLoadingStrategy<T> strategy;
@@ -6397,7 +6397,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+public class EntrypointUtil {
+
+ private static final Logger LOGGER = LogUtils.getLogger();
+ private static final Logger LOGGER = LogUtils.getClassLogger();
+
+ public static <C> void registerProvidersFromSource(ProviderSource<C> source, C context) {
+ try {