OpenWGA 7.2 - TMLScript reference
TMLContext "this"Property :
log
On object | TMLContext "this" |
Usage |
Provides an object for logging output to the application log |
Description |
The object provided is a Java object "Logger" of the logger library "Log4J" by the Apache Foundation. A complete documentation of the object therefor can be found in the Apache Log4J API Dokumentation. It provides five methods to log messages in different log levels:
For conveniently logging of normal messages in TMLScript you may want to use the Console object instead. For logging errors and Java exceptions method WGA,.logException() is suitable. |
Return value | Logger object (Java object org.apache.log4j.Logger) |
Allowed in script types |
|
Examples |
Some usages of the log object: this.log.error( "Critical Error in TMLScript, calculation aborted!" ); |