@Override
    public Integer offsetComparator(String offset1, String offset2) {
      if (offset1 == null) {
        return offset2 == null ? 0 : -1;
      } else if (offset2 == null) {
        return 1;
      }
      return offset1.compareTo(offset2);
    }
Console logging System factory that just writes the messages to the console output.
This system factory is useful when the user wants to print the output of the stream processing to console.
samza-tools/src/main/java/org/apache/samza/tools/ConsoleLoggingSystemFactory.java