public synchronized void log(LogRecord record) {
    if (!isLoggable(record.getLevel())) {
      // This record is beneath us
      return;
    }

    if (DEBUG) {
      System.out.println("Logging " + record);
    }

    // Publish the record to each handler
    for (final Object o : handlers) {
      Handler handler = (Handler) o;
      handler.publish(record);
      handler.flush();
    }
  }
Prints the given log record to System.err
geode-core/src/test/java/org/apache/persistence/logging/Logger.java