Package com.betfair.cougar.logging.records

Examples of com.betfair.cougar.logging.records.EventLogRecord


  }

  @Override
  public void logEvent(LoggableEvent loggableEvent, Object[] extensionFields) {
    if (enabled) {
        EventLogRecord eventLogRecord = new EventLogRecord(loggableEvent, extensionFields);
      logEventLogRecord(eventLogRecord);
    }
  }
View Full Code Here


                            requestMediaType != null ? requestMediaType.getSubtype() : "",
                            responseMediaType != null ? responseMediaType.getSubtype() : "",
                            extraFields};
                }
            };
            EventLogRecord eventLogRecord = new EventLogRecord(le, null);
            EventLogDefinition invokableLogger = registry.getInvokableLogger(eventLogRecord.getLoggerName());
            if (invokableLogger != null) {
                CougarLoggingUtils.getLogger(invokableLogger.getLogName()).log(eventLogRecord);
            } else {
                throw new CougarFrameworkException("Logger "+eventLogRecord.getLoggerName()+" is not an event logger");
            }
        }
        httpRequests.incrementAndGet();
    }
View Full Code Here

TOP

Related Classes of com.betfair.cougar.logging.records.EventLogRecord

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.