Class LogUtil
java.lang.Object
net.sf.jailer.util.LogUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceCallback interface for warning notifications. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidinitLog4jConfig(File baseDir) Initializes the log4j configuration with the given base directory.static voidsetWarn(LogUtil.Warn warn) Sets the warning callback.static voidIssues a warning for the given throwable.
-
Constructor Details
-
LogUtil
public LogUtil()
-
-
Method Details
-
initLog4jConfig
Initializes the log4j configuration with the given base directory.- Parameters:
baseDir- the base directory to use as the log directory, ornullfor the current directory
-
setWarn
Sets the warning callback.- Parameters:
warn- the warning callback, ornullto clear it
-
warn
Issues a warning for the given throwable. Prints the stack trace and notifies the registeredLogUtil.Warncallback.- Parameters:
t- the throwable to warn about
-