From 44efb397fc6ea58640c1196d33092aaca1f54ef5 Mon Sep 17 00:00:00 2001 From: Riley Park Date: Wed, 19 Jan 2022 18:39:08 -0800 Subject: [PATCH] Deprecate log4j logger method in `Plugin` --- patches/api/Allow-plugins-to-use-SLF4J-for-logging.patch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/patches/api/Allow-plugins-to-use-SLF4J-for-logging.patch b/patches/api/Allow-plugins-to-use-SLF4J-for-logging.patch index 32ba41969b..bf2948c696 100644 --- a/patches/api/Allow-plugins-to-use-SLF4J-for-logging.patch +++ b/patches/api/Allow-plugins-to-use-SLF4J-for-logging.patch @@ -40,6 +40,10 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + return org.slf4j.LoggerFactory.getLogger(getLogger().getName()); + } + ++ /** ++ * @deprecated use {@link #getSLF4JLogger()} ++ */ ++ @Deprecated + @NotNull + default org.apache.logging.log4j.Logger getLog4JLogger() { + return org.apache.logging.log4j.LogManager.getLogger(getLogger().getName());