除了在 Windows 事件日志中的“应用程序”节点上之外,如何创建(在 Delphi 中)自定义事件日志?
//The code below write on the Application node only
with TEventLogger.Create('JarvisAgent') do
begin
try
try
LogMessage(Msg, EVENTLOG_INFORMATION_TYPE, 0, 2);
finally
Free;
end;
except
end;
end;