Package org.freeplane.core.util
Class LogUtils
- java.lang.Object
-
- org.freeplane.core.util.LogUtils
-
public class LogUtils extends java.lang.ObjectUtilities for logging to the standard logfile.In scripts this class can be accessed via the "global" variable
logger, so this is the way to log in scripts:try { logger.info("this node as date: " + node.to.date) } catch (Exception ex) { logger.severe('error on conversion of "' + node.text + '" to date', ex) }
-
-
Constructor Summary
Constructors Constructor Description LogUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetLogDirectory()static java.util.logging.LoggergetLogger()static voidinfo(java.awt.datatransfer.Transferable t)static voidinfo(java.lang.String string)static voidsevere(java.lang.String message)static voidsevere(java.lang.String comment, java.lang.Throwable e)static voidsevere(java.lang.Throwable e)static voidwarn(java.lang.String msg)static voidwarn(java.lang.String comment, java.lang.Throwable e)static voidwarn(java.lang.Throwable e)
-
-
-
Method Detail
-
getLogDirectory
public static java.lang.String getLogDirectory()
-
info
public static void info(java.lang.String string)
-
info
public static void info(java.awt.datatransfer.Transferable t)
-
severe
public static void severe(java.lang.String message)
-
severe
public static void severe(java.lang.String comment, java.lang.Throwable e)
-
severe
public static void severe(java.lang.Throwable e)
-
warn
public static void warn(java.lang.String msg)
-
warn
public static void warn(java.lang.String comment, java.lang.Throwable e)
-
warn
public static void warn(java.lang.Throwable e)
-
getLogger
public static java.util.logging.Logger getLogger()
-
-