Hiding frequent logging of error messages
Traditional:
The
log-tracked-loudly configuration property in the appropriate
100Custom.xml files to your topology enables or disables logging of frequent
error messages.
About this task
When tracking is enabled for BPD (Business Process Definition) variables that have no default value, CWLLG2041E exceptions are written to the logs. Frequent logging of these error messages can eventually cause system logs to overwrite each other, causing the loss of valuable tracing that might help in identifying other issues.
The stack
trace generated in the logs might look similar to this:
E CWLLG2041E: TeamWorksJavaScriptException created
non-nested. Error: [TeamworksException name='TypeError',
message='TypeError: Cannot read property "subBusinessObject"
from undefined (<JSScript>#1)', line=1, pos=0 nested=<none>]
[TeamworksException
name='TypeError', message='TypeError: Cannot read property
"subBusinessObject" from undefined (<JSScript>#1)', line=1,
pos=0 nested=<none>]
at
com.lombardisoftware.core.script.js.JavaScriptRunner.execute(Jav
aScriptRunner.java:270)
at
com.lombardisoftware.core.script.js.JavaScriptRunner.evalExpress
ion(JavaScriptRunner.java:367)
at
com.lombardisoftware.core.script.js.JavaScriptRunner.evalExpress
ion(JavaScriptRunner.java:355)
at
com.lombardisoftware.bpd.runtime.engine.BPDExecutionTreeNode.eva
luateExpression(BPDExecutionTreeNode.java:689)
... To enable or disable logging of frequent
error messages, add the
log-tracked-loudly configuration
property to the appropriate 100Custom.xml files
to your topology (see the topic Location of 100Custom configuration files for its location). - When this property is set to
false, the default behavior is used. Exceptions are written to the log as SEVERE. - When this property is set to
true, this default behavior is disabled. Instead, exceptions are written to the log only if the logging level is set to FINE. Because the default logging level is INFO, these FINE logged exceptions should not appear in the log files.
To add the log-tracked-loudly configuration
property to the 100Custom.xml files, complete
the following steps.