public final class MarkerManager extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MarkerManager.Log4jMarker
Consider this class private, it is only public to satisfy Jackson for XML and JSON IO.
|
Modifier and Type | Method and Description |
---|---|
static void |
clear()
Clears all markers.
|
static Marker |
getMarker(String name)
Retrieve a Marker or create a Marker that has no parent.
|
static Marker |
getMarker(String name,
Marker parent)
Deprecated.
Use the Marker add or set methods to add parent Markers. Will be removed by final GA release.
|
static Marker |
getMarker(String name,
String parent)
Deprecated.
Use the Marker add or set methods to add parent Markers. Will be removed by final GA release.
|
public static void clear()
public static Marker getMarker(String name)
name
- The name of the Marker.IllegalArgumentException
- if the argument is null
@Deprecated public static Marker getMarker(String name, String parent)
name
- The name of the Marker.parent
- The name of the parent Marker.IllegalArgumentException
- if the parent Marker does not exist.@Deprecated public static Marker getMarker(String name, Marker parent)
name
- The name of the Marker.parent
- The parent Marker.IllegalArgumentException
- if any argument is null
Copyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.