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 |
|
| Configuration service event |
|
| Message event |
|
| REST API event |
|
|
Web event |
|
|
Web service event |
|
| Work queue event |
|
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
