IEventLogServiceLogException Method |
Writes a new error to the event log.
Namespace: CMS.CoreAssembly: CMS.Core (in CMS.Core.dll) Version: 12.0.0
Syntax void LogException(
string source,
string eventCode,
Exception ex,
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 - loggingPolicy (Optional)
- Type: CMS.CoreLoggingPolicy
Logging policy.
See Also