deprecated old loggers
Motivation: Commons logger is dead and not updated for more than 2 years. #5615. Modifications: Added @Deprecated annotation to CommonsLoggerFactory and CommonsLogger. Result: Commons logger now deprecated.
This commit is contained in:
parent
0b086a9625
commit
c13908adb5
@ -44,7 +44,11 @@ import org.apache.commons.logging.Log;
|
|||||||
/**
|
/**
|
||||||
* <a href="http://commons.apache.org/logging/">Apache Commons Logging</a>
|
* <a href="http://commons.apache.org/logging/">Apache Commons Logging</a>
|
||||||
* logger.
|
* logger.
|
||||||
|
*
|
||||||
|
* @deprecated Please use {@link Log4J2Logger} or {@link Log4JLogger} or
|
||||||
|
* {@link Slf4JLogger}.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
class CommonsLogger extends AbstractInternalLogger {
|
class CommonsLogger extends AbstractInternalLogger {
|
||||||
|
|
||||||
private static final long serialVersionUID = 8647838678388394885L;
|
private static final long serialVersionUID = 8647838678388394885L;
|
||||||
|
@ -18,14 +18,15 @@ package io.netty.util.internal.logging;
|
|||||||
|
|
||||||
import org.apache.commons.logging.LogFactory;
|
import org.apache.commons.logging.LogFactory;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Logger factory which creates an
|
* Logger factory which creates an
|
||||||
* <a href="http://commons.apache.org/logging/">Apache Commons Logging</a>
|
* <a href="http://commons.apache.org/logging/">Apache Commons Logging</a>
|
||||||
* logger.
|
* logger.
|
||||||
|
*
|
||||||
|
* @deprecated Please use {@link Log4J2LoggerFactory} or {@link Log4JLoggerFactory} or
|
||||||
|
* {@link Slf4JLoggerFactory}.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public class CommonsLoggerFactory extends InternalLoggerFactory {
|
public class CommonsLoggerFactory extends InternalLoggerFactory {
|
||||||
|
|
||||||
public static final InternalLoggerFactory INSTANCE = new CommonsLoggerFactory();
|
public static final InternalLoggerFactory INSTANCE = new CommonsLoggerFactory();
|
||||||
|
Loading…
Reference in New Issue
Block a user