code: public static LogMonitor logMonitor()
      {
          return new LogMonitor()
          {
              @Override
              public void corruption(long bytes, String reason)
              {
                  System.out.println(String.format("corruption of %s bytes: %s", bytes, reason));
              }
  
              @Override
              public void corruption(long bytes, Throwable reason)
              {
                  System.out.println(String.format("corruption of %s bytes", bytes));
                  reason.printStackTrace();
              }
          };
      }
docs: todo implement real logging