Forum Discussion
jmcpeek
12 years agoContributor
You just need an event handler tied to the events you don't want logged. There might be a better way, but I've suppressed events, messages and warnings when they have additional text specified. This works for us because we don't use Additional Text when we manually log things.
Sub GeneralEvents_SuppressSystemLogging(Sender, LogParams)
'events, warnings and messages will be suppressed if the Additional Text is populated
'when the system is generating logging, it populated Additional Text
'when logging events, warnings or messages from a test, we should not include Additional Text
if len(logparams.additionaltext) > 0 then
logparams.locked = true
else
logparams.locked = false
end if
End Sub
Sub GeneralEvents_SuppressSystemLogging(Sender, LogParams)
'events, warnings and messages will be suppressed if the Additional Text is populated
'when the system is generating logging, it populated Additional Text
'when logging events, warnings or messages from a test, we should not include Additional Text
if len(logparams.additionaltext) > 0 then
logparams.locked = true
else
logparams.locked = false
end if
End Sub