code: @Override
      public Object invoke(final Object proxy, final Method method, final Object[] args) throws Throwable {
          if (SplitlogLoggerFactory.isLoggingEnabled()) {
              SplitlogLoggerFactory.increaseMessageCounter();
              return method.invoke(this.proxied, args);
          } else {
              // logging is not enabled, don't proxy the call
              return null;
          }
      }
docs: Will call the proxied method, but only if
  {@link SplitlogLoggerFactory#isLoggingEnabled()} is true at the time.