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:
Dmitriy Dumanskiy 2016-08-03 23:28:44 +03:00 committed by Norman Maurer
parent 0b086a9625
commit c13908adb5
2 changed files with 8 additions and 3 deletions

View File

@ -44,7 +44,11 @@ import org.apache.commons.logging.Log;
/**
* <a href="http://commons.apache.org/logging/">Apache Commons Logging</a>
* logger.
*
* @deprecated Please use {@link Log4J2Logger} or {@link Log4JLogger} or
* {@link Slf4JLogger}.
*/
@Deprecated
class CommonsLogger extends AbstractInternalLogger {
private static final long serialVersionUID = 8647838678388394885L;

View File

@ -18,14 +18,15 @@ package io.netty.util.internal.logging;
import org.apache.commons.logging.LogFactory;
import java.util.HashMap;
import java.util.Map;
/**
* Logger factory which creates an
* <a href="http://commons.apache.org/logging/">Apache Commons Logging</a>
* logger.
*
* @deprecated Please use {@link Log4J2LoggerFactory} or {@link Log4JLoggerFactory} or
* {@link Slf4JLoggerFactory}.
*/
@Deprecated
public class CommonsLoggerFactory extends InternalLoggerFactory {
public static final InternalLoggerFactory INSTANCE = new CommonsLoggerFactory();