In our kernel driver, we need to log some events into the system's events log.
So according to this Microsoft manual page, it is only possible as an error. Unfortunately this is not the case and it leads to some confusion.
So is it possible for a driver to log info/warning events instead of error ?
I read the SerialLogError(() function in the utils.c file. But it ends with a call to IoWriteErrorLogEntry() which then will log an error event in the system's log.
And I found nowhere any indication of an event level (INFO, WARNING,DEBUG, ...) in the code. Even the entry allocation primitive is named : IoAllocateErrorLogEntry().
So is it possible to log anything other than an error in the system's log ?
The mc file illustrates how to set the 'severity' - Success Informational Warning Error.
MessageId=0x0001 Facility=Serial Severity=Informational SymbolicName=SERIAL_KERNEL_DEBUGGER_ACTIVE
Language=English
The kernel debugger is already using %2.