Click or drag to resize
EventLogService Class
Service logs events via registered implementations of IEventLogWriter and ensures the contextual information in the logged data.
Inheritance Hierarchy
SystemObject
  CMS.EventLogEventLogService

Namespace: CMS.EventLog
Assembly: CMS.EventLog (in CMS.EventLog.dll) Version: 13.0.131
Syntax
C#
public class EventLogService : IEventLogService

The EventLogService type exposes the following members.

Constructors
Methods
  NameDescription
Protected methodEnsureContextInformation
Fills the EventLogData with contextual information about the current request and machine.
Public methodLogEvent
Passes event log data to be written by all registered event log writers and provides the contextual information.
Top
Extension Methods
  NameDescription
Public Extension MethodLogError
Writes a new error to the event log.
(Defined by EventLogServiceExtensions.)
Public Extension MethodLogEvent
Writes a new record to the event log.
(Defined by EventLogServiceExtensions.)
Public Extension MethodLogException
Writes a new error to the event log.
(Defined by EventLogServiceExtensions.)
Public Extension MethodLogInformation
Writes a new information to the event log.
(Defined by EventLogServiceExtensions.)
Public Extension MethodLogWarning(String, String, String, Int32, LoggingPolicy)Overloaded.
Writes a new warning to the event log.
(Defined by EventLogServiceExtensions.)
Public Extension MethodLogWarning(String, String, Exception, Int32, String, LoggingPolicy)Overloaded.
Writes a new warning to the event log.
(Defined by EventLogServiceExtensions.)
Top
See Also