class ProcessingLoggerImpl implements ProcessingLogger {

  @Override
  public void error(final ErrorMessage msg) {
    inner.error(() -> throwIfNotRightSchema(msg.get(config)));
  }

  public  ProcessingLoggerImpl(final ProcessingLogConfig config, final StructuredLogger inner);

}