Class LoggingHelper
java.lang.Object
org.sentrysoftware.metricshub.engine.common.helpers.LoggingHelper
Helper class for logging opeations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRun the given runnable if the debug mode of the logger is enabledstatic voidlogSourceError(String connectorId, String sourceKey, String context, String hostname, Throwable throwable) Log the given throwablestatic voidRun the given runnable if the tracing mode of the logger is enabled
-
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-
-
debug
Run the given runnable if the debug mode of the logger is enabled- Parameters:
runnable-
-