문제

I am trying to set an event level as Critical using the below method:

WriteEvent(id, categoryName, EventSeverity.ErrorCritical, entry);

But in the event log it only show event level as Error instead of Critical. Is there any other configuration and parameter I need to set?

도움이 되었습니까?

해결책

Do you mean Microsoft.SharePoint.Administration.EventSeverity? It's used by ShP and maps to its own event log.

The correct way to use System.Diagnostics.EventLogEntryType which maps to Windows event log:

Error
Warning
Information
SuccessAudit
FailureAudit
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top