Class LoggingHelper
java.lang.Object
org.sentrysoftware.metricshub.engine.common.helpers.LoggingHelper
Helper class for logging opeations
-
Constructor Summary
Constructors -
Method Summary
-
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 connectorsourceKey- The key of the sourcecontext- Additional information about the operationhostname- The host's hostnamethrowable- The caught throwable to log
-
trace
Run the given runnable if the tracing mode of the logger is enabled- Parameters:
runnable-
-