public class LogUtils extends Object
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 | Description |
---|---|
LogUtils() |
Modifier and Type | Method | Description |
---|---|---|
static void |
createLogger() |
|
static String |
getLogDirectory() |
|
static Logger |
getLogger() |
|
static void |
info(Transferable t) |
|
static void |
info(String string) |
|
static void |
severe(String message) |
|
static void |
severe(String comment,
Throwable e) |
|
static void |
severe(Throwable e) |
|
static void |
warn(String msg) |
|
static void |
warn(String comment,
Throwable e) |
|
static void |
warn(Throwable e) |
public static void createLogger()
public static String getLogDirectory()
public static void info(String string)
public static void info(Transferable t)
public static void severe(String message)
public static void severe(Throwable e)
public static void warn(String msg)
public static void warn(Throwable e)
public static Logger getLogger()