java.lang.Object
org.sentrysoftware.metricshub.engine.common.helpers.LoggingHelper

public class LoggingHelper extends Object
Helper class for logging opeations
  • Constructor Details

    • LoggingHelper

      public LoggingHelper()
  • Method Details

    • logSourceError

      public static void logSourceError(String connectorId, String sourceKey, String context, String hostname, Throwable throwable)
      Log the given throwable
      Parameters:
      connectorId - The identifier of the connector
      sourceKey - The key of the source
      context - Additional information about the operation
      hostname - The host's hostname
      throwable - The caught throwable to log
    • trace

      public static void trace(Runnable runnable)
      Run the given runnable if the tracing mode of the logger is enabled
      Parameters:
      runnable -