EventLogProviderLogException Method |
Writes a new error to the event log.
Namespace: CMS.EventLogAssembly: CMS.EventLog (in CMS.EventLog.dll) Version: 12.0.0
Syntax public static void LogException(
string source,
string eventCode,
Exception ex,
int siteId = 0,
string additionalMessage = null,
LoggingPolicy loggingPolicy = null
)
Parameters
- source
- Type: SystemString
Source of the event (Content, Administration, etc.) - eventCode
- Type: SystemString
Event code (UPDATEDOC, SENDEMAIL, DELETE, etc.) - ex
- Type: SystemException
Exception to be logged - siteId (Optional)
- Type: SystemInt32
Current site ID - additionalMessage (Optional)
- Type: SystemString
Additional information to the exception message - loggingPolicy (Optional)
- Type: CMS.CoreLoggingPolicy
Logging policy.
See Also