Deprecate log4j logger method in Plugin

This commit is contained in:
Riley Park 2022-01-19 18:39:08 -08:00
parent 7b57dbf7c0
commit 44efb397fc

View file

@ -40,6 +40,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ return org.slf4j.LoggerFactory.getLogger(getLogger().getName()); + return org.slf4j.LoggerFactory.getLogger(getLogger().getName());
+ } + }
+ +
+ /**
+ * @deprecated use {@link #getSLF4JLogger()}
+ */
+ @Deprecated
+ @NotNull + @NotNull
+ default org.apache.logging.log4j.Logger getLog4JLogger() { + default org.apache.logging.log4j.Logger getLog4JLogger() {
+ return org.apache.logging.log4j.LogManager.getLogger(getLogger().getName()); + return org.apache.logging.log4j.LogManager.getLogger(getLogger().getName());