Click or drag to resize

LogEvent Class

[This is preliminary documentation and is subject to change.]

Represents a logging event
Inheritance Hierarchy
SystemObject
  BaseEvent
    CSInfrastructure.EventsLogEvent

Namespace:  CSInfrastructure.Events
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public sealed class LogEvent : BaseEvent

The LogEvent type exposes the following members.

Constructors
  NameDescription
Public methodLogEvent(Level, String)
Creates a log event with given severity and message
Public methodLogEvent(Level, String, String)
Creates a log event with given severity, message and the source from where the event originated
Public methodLogEvent(Level, String, String, String)
Creates a log even with given severity, message, source and file from where the event originated
Public methodLogEvent(Level, String, String, String, Int32)
Creates a log even with given severity, message, source, file and line number from where the event originated
Top
Properties
  NameDescription
Public propertyMessage
The log message
Public propertySeverity
The severity of the logging event
Public propertySource
Determines the source of the logging event. Unknown if no SourceFile is provided
Public propertySourceFile
The source file from where the logging event originated
Public propertySourceLineNumber
The line number of the source file on which the logging event originated
Public propertySourceMethod
The source method from where the logging event originated
Top
Methods
  NameDescription
Public methodStatic memberDebug
Factory method that creates a logging event with Debug and a given message. It will automatically try to determine the source method, source file and line number
Public methodStatic memberError
Factory method that creates a logging event with Error and a given message. It will automatically try to determine the source method, source file and line number
Public methodStatic memberInfo
Factory method that creates a logging event with Info and a given message. It will automatically try to determine the source method, source file and line number
Public methodStatic memberTrace
Factory method that creates a logging event with Trace and a given message. It will automatically try to determine the source method, source file and line number
Public methodStatic memberWarn
Factory method that creates a logging event with Warn and a given message. It will automatically try to determine the source method, source file and line number
Top
See Also