Class JKLogServicePublisher

java.lang.Object
com.jk.web.monitoring.JKMonitorService
com.jk.services.server.commons.util.JKLogServicePublisher

public class JKLogServicePublisher extends JKMonitorService
This class extends JKMonitorService and is responsible for publishing exceptions to a logging service.

It logs exceptions and sends them to the logging service using a JKLogServiceClient.

Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • JKLogServicePublisher

      public JKLogServicePublisher()
      This method constructs a new JKLogServicePublisher.
  • Method Details

    • publish

      public void publish(jakarta.servlet.http.HttpServletRequest request, Throwable exception)
      This method logs an error or exception.
      Overrides:
      publish in class JKMonitorService
      Parameters:
      request - Specifies the HttpServletRequest object representing the current HTTP request.
      exception - Specifies the Throwable exception that needs to be logged.