OpenWGA 7.7 - TMLScript reference

WGA
Property :

log

On object WGA
Usage Provides a log object for writing to an appropriate log for the current environment
Description Like this.log this is a Java object "Logger" of the logger library "Log4J" by the Apache Foundation with the same logging methods.

This log object is redirected to the log which is meant to take logging output for the current TMLScript environment. When inside the TMLScript task of a job it logs into the job log. In other situations it logs to the application log.
Writable False
Return value Logger object (Java object org.apache.log4j.Logger)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events