Package com.manning.hip.common

Examples of com.manning.hip.common.CommonLogEntry


          }

          @Override
          public void process(String input, Emitter<CommonLogEntry> emitter) {
            try {
              CommonLogEntry log = logReader.decodeLine(input);
              if(log != null) {
                emitter.emit(log);
              } else {
                processingError(input, null);
              }
            } catch (IOException e) {
              processingError(input, e);
            }
          }

          void processingError(String line, @Nullable Throwable t) {
            super.getCounter(LogCounters.LOG_LINE_ERRORS).increment(1);
            log.error("Hit exception parsing line '" + line + "'", t);
          }
        }, tf.records(CommonLogEntry.class));
  }
View Full Code Here

TOP

Related Classes of com.manning.hip.common.CommonLogEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.