1 package org.openecomp.core.logging;
3 import org.slf4j.Marker;
4 import org.slf4j.MarkerFactory;
7 * <p>The list of markers that can be used for special logging such as metrics, audit, etc.</p>
8 * <p>Although markers can be easily instantiated whenever needed, having constants for them helps
9 * eliminate mistakes - misspelling, using a marker that is not handled, etc.</p> <p>Usage:</p>
11 * Logger log = LogFactory.getLogger(this.getClass());
12 * log.info(Markers.AUDIT, "User '{}' logged out", user);
15 * @see org.slf4j.Marker
17 public class Markers {
19 public static final Marker AUDIT = MarkerFactory.getMarker("AUDIT");
20 public static final Marker METRICS = MarkerFactory.getMarker("METRICS");