@Override
        public boolean isEnabled(InternalLogLevel level) {
            if (level == null) {
                return false;
            }
            switch (level) {
                case TRACE:
                    return logger.isTraceEnabled();
                case DEBUG:
                    return logger.isDebugEnabled();
                case INFO:
                    return logger.isInfoEnabled();
                case WARN:
                    return logger.isWarnEnabled();
                case ERROR:
                    return logger.isErrorEnabled();
            }
            return false;
        }
@author Robert HG (254963746@qq.com) on 11/5/15.
lts-core/src/main/java/com/github/ltsopensource/remoting/netty/NettyLogger.java