OpenLog - Feature Request: Setting a Level(or Threshhold) to limit LogEventCreated on |
May 9, 2008 |
Created by |
Eric H Romo |
Status |
Submitted |
Sort of a simple concept, may be useful enough....
in Declarations, Add:
dim globalLogEventLevel as Long
Add:
Function SetLogEventLevel(severity As Long) As Boolean
globalLogEventLevel = severity
SetLogEventLevel = True
End Function
Add In near beginning of LogEvent function:
If globalLogEventLevel > severity Then
' skip if severity is too low to be reported
Exit Function
End If
To use this in an agent, try:
Call SetLogEventLevel(SEVERITY_MEDIUM)
or
CONST SEVERITY_DEBUG = 0
Call SetLogEventLevel(SEVERITY_DEBUG)
or
globalLogEventLevel = SEVERITY_MEDIUM
Taken Actions by OwnersNo actions have been taken yet.