Module glf.api

Class MarkerFactory

java.lang.Object
org.seppiko.glf.api.MarkerFactory

public class MarkerFactory extends Object
MarkerFactory is a utility class producing Marker instances as appropriate for the logging system currently in use.
Author:
Leonard Woo
  • Constructor Details

    • MarkerFactory

      public MarkerFactory()
  • Method Details

    • getMarker

      public static Marker getMarker(String name)
      Return a Marker instance as specified by the name parameter using the previously bound IMarkerFactory instance.
      Parameters:
      name - The name of the Marker object to return.
      Returns:
      a marker.
    • getDetachedMarker

      public static Marker getDetachedMarker(String name)
      Create a marker which is detached (even at birth) from the MarkerFactory.
      Parameters:
      name - the name of the marker.
      Returns:
      a dangling marker.
    • getIMarkerFactory

      public static IMarkerFactory getIMarkerFactory()
      Return the IMarkerFactory instance in use.
      Returns:
      the IMarkerFactory instance in use.