record-message-in-windows-event-log type message &key source-name unc-server-name handle category event-id user-sid data
A keyword.
A string or list of strings.
A string.
nil
or a string.
nil
or an open event log handle.
An integer.
An integer.
nil
or a foreign pointer to a SID object.
nil
or a string.
The function record-message-in-windows-event-log
records a message message in the Windows event log.
type must be one of the keywords :success
, :error
, :warning
, :information
, :audit-success
or :audit-failure
, corresponding to the types of Window event log entry.
message is used as the string (or list of strings) recorded with the event.
If handle is nil
, source-name is used as the name of the event source for recording events. If source-name is nil
then the name of the Lisp executable is used.
If handle is nil
and unc-server-name is non-nil, then it specifies the UNC name of a server which records the events.
If handle is non-nil, then it must be an open event log handle, such as created by with-windows-event-log-event-source. If handle is nil
, then source-name is used to open an event log handle for the duration of the call to record-message-in-windows-event-log
.
category and event-id are recorded in the event log. They are only useful if you create and register an event source provider DLL in Windows (see MSDN documentation for "Reporting Events").
If user-sid is non-nil, then it is used to record the user that logged the event.
If data is non-nil, then it is recorded as extra data associated with the event.
LispWorks User Guide and Reference Manual - 20 Sep 2017