EventLogProviderLogEvent Method (EventLogInfo, Boolean, Boolean) |
Note: This API is now obsolete.
Writes a new record to the event log.
Namespace: CMS.EventLogAssembly: CMS.EventLog (in CMS.EventLog.dll) Version: 12.0.0
Syntax [ObsoleteAttribute("Use member EventLogInfo LogEvent(EventLogInfo) instead.")]
public static EventLogInfo LogEvent(
EventLogInfo eventObject,
bool logDirectly = false,
bool deleteOlder = false
)
Parameters
- eventObject
- Type: CMS.EventLogEventLogInfo
Contains event - logDirectly (Optional)
- Type: SystemBoolean
If true, the event is logged directly to the database. Otherwise, the event is logged to the queue processed by background worker to optimize performance. - deleteOlder (Optional)
- Type: SystemBoolean
If true, older items are deleted if the log length exceeds maximum
Return Value
Type:
EventLogInfoSee Also