Class PLLoggingMarker

Read-only Guidewire class PLLoggingMarker defines the default marker types that Guidewire provides in the base configuration. This class defines each marker type as a constant. Use the following syntax to reference each marker type:
  • PLLoggerMarker.MARKER_TYPE
For example, to reference the user log-on marker type, use the following code:
  • PLLoggerMarker.WEB_LOGON

The following table lists the marker constants defined in class PLLoggingMarker that are publicly available for use.

Event type

Marker type

Batch process event

  • BATCH_PROCESS_STARTED
  • BATCH_PROCESS_COMPLETED
Configuration service event
  • CONFIG_SERVICE_STATE
Message event
  • MESSAGE_BEFORE_SEND
  • MESSAGE_SEND
  • MESSAGE_AFTER_SEND
  • MESSAGE_ACK_RECEIVED
REST API event
  • GOSU_SERVLET
  • REST_REQUEST

Web event

  • WEB_LOGON
  • WEB_LOGOUT
  • WEB_REQUEST

Web service event

  • WEB_SERVICE_OPERATION
  • WEB_SERVICE_REQUEST
Work queue event
  • WORK_QUEUE
  • WORK_QUEUE_WORK_ITEM_PROCESSED
The marker types that Guidewire defines in class PLLoggingMarker are of type Marker from the SLF4J library. For more information, refer to the following SLF4J documentation:

Public method on PLLoggerMarker

Class PLLoggingMarker contains a single public method:
  • PLLoggingmarker.marker(String)

Use this method returns a slf4j marker with the passed-in name, for example:

  • PLLoggingMarker.marker("custom_marker")

Working with custom markers

It is possible to create your own custom LoggingMarker class. In your class, add your own marker types as constants, using PLLoggingMarker as an example.

Consider the following general guidelines in working with custom markers:
  • If you plan to reuse a marker type multiple times, add the marker type to a custom LoggingMarker class.
  • If you plan to use a marker a single time only, create a single-use marker using one of the following class methods:
    • PLloggingMarker.marker
    • MarkerFactory.getMarker