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) }@author foltin
|
|