Working enhanced logging API on Nashorn