docs: public void log(final Level level, final String msg, final Object... args) {
          String message = msg;
  
          if (null != args && 0 < args.length) {
              // Is it a java.text style format?
              // Ideally we could match with Pattern.compile("\\{\\d").matcher(format).find())
              // However the cost is 14% higher, so we cheaply check for 1 of the first 4 parameters
              if (msg.indexOf("{0") >= 0 || msg.indexOf("{1") >= 0 || msg.indexOf("{2") >= 0 || msg.indexOf("{3") >= 0) {
                  message = java.text.MessageFormat.format(msg, args);
              }
          }
  
          switch (level) {
              case ERROR:
                  if (proxy.isErrorEnabled()) {
                      if (proxy instanceof LocationAwareLogger) {
                          ((LocationAwareLogger) proxy).log(null, FQCN, LocationAwareLogger.ERROR_INT, message, null, null);
                      } else {
                          proxy.error(message);
                      }
                  }
  
                  break;
              case WARN:
                  if (proxy.isWarnEnabled()) {
                      if (proxy instanceof LocationAwareLogger) {
                          ((LocationAwareLogger) proxy).log(null, FQCN, LocationAwareLogger.WARN_INT, message, null, null);
                      } else {
                          proxy.warn(message);
                      }
                  }
  
                  break;
              case INFO:
                  if (proxy.isInfoEnabled()) {
                      if (proxy instanceof LocationAwareLogger) {
                          ((LocationAwareLogger) proxy).log(null, FQCN, LocationAwareLogger.INFO_INT, message, null, null);
                      } else {
                          proxy.info(message);
                      }
                  }
  
                  break;
              case DEBUG:
                  if (proxy.isDebugEnabled()) {
                      if (proxy instanceof LocationAwareLogger) {
                          ((LocationAwareLogger) proxy).log(null, FQCN, LocationAwareLogger.DEBUG_INT, message, null, null);
                      } else {
                          proxy.debug(message);
                      }
                  }
  
                  break;
              case TRACE:
                  if (proxy.isTraceEnabled()) {
                      if (proxy instanceof LocationAwareLogger) {
                          ((LocationAwareLogger) proxy).log(null, FQCN, LocationAwareLogger.TRACE_INT, message, null, null);
                      } else {
                          proxy.trace(message);
                      }
                  }
  
                  break;
              default:
                  throw new IllegalStateException("Logging level [" + level + "] is invalid");
          }
      }