APISonar


org.infinispan.util.logging.events.EventLogger.log

> org > infinispan > util > logging > events > EventLogger > log
org APIs infinispan APIs util APIs logging APIs events APIs EventLogger APIs log APIs

Example 1
private EventLogger delegate;

   public void log(EventLogLevel level, EventLogCategory category, String message) {
      StringBuilder sb = new StringBuilder();
      context.ifPresent(c -> sb.append(MESSAGES.eventLogContext(c)));
      scope.ifPresent(s -> sb.append(MESSAGES.eventLogContext(s)));
      who.ifPresent(w -> sb.append(MESSAGES.eventLogWho(w)));
      // We don't include detail in this implementation
      sb.append(message);
      delegate.log(level, category, sb.toString());
   }