APISonar


org.sonatype.gossip.Level.log

> org > sonatype > gossip > Level > log
org APIs sonatype APIs gossip APIs Level APIs log APIs

Example 1
public void recordEvent(final LogEventXO event) {
    if (!enabled) {
      return;
    }

    checkNotNull(event);

    Level level = levels.get(event.getLevel());
    checkState(level != null, "Invalid level: %s", event.getLevel());

    Logger logger = LoggerFactory.getLogger(event.getLogger());
    level.log(logger, event.getMessage());
  }