Package electrostatic4j.snaploader.util
Class SnapLoaderLogger
java.lang.Object
electrostatic4j.snaploader.util.SnapLoaderLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanTests the logging flag, default value is false.static voidLog data with a level and a throwable (optional).static voidLog data with a level and a throwable (optional).static voidsetLoggingEnabled(boolean loggingEnabled) Enables the logging for this object, default value is false.
-
Constructor Details
-
SnapLoaderLogger
public SnapLoaderLogger()
-
-
Method Details
-
log
Log data with a level and a throwable (optional).- Parameters:
level- the logger levelsourceMethod- the source of this callmsg- a string formatted message to display
-
log
public static void log(Level level, String sourceClass, String sourceMethod, String msg, Throwable throwable) Log data with a level and a throwable (optional).- Parameters:
level- the logger levelsourceMethod- the source of this callmsg- a string formatted message to displaythrowable- optional param for error messages
-
setLoggingEnabled
public static void setLoggingEnabled(boolean loggingEnabled) Enables the logging for this object, default value is false.- Parameters:
loggingEnabled- true to enable logging, false otherwise
-
isLoggingEnabled
public static boolean isLoggingEnabled()Tests the logging flag, default value is false.- Returns:
- true if the logging flag is enabled, false otherwise
-