The LogMsg event is called when a log message is created. The event is
called regardless of the filter level in the System Log and can be used to
detect special occurrences due to the message text content. Example:
def Handle_System_LogMsg(Level,Sender,Msg):
#
# Level = VT_I4
# Sender = VT_BSTR
# Msg = VT_BSTR
#
# Level: -1=Error, 0=Warning, 1..3=Info 1..3
# Return 1 if handled by script
# Return 0 if default handling
#
if Sender=='Central':
return 1 #ignore all central
messages (don't append to system log)
return 0 |