Show / Hide Table of Contents

Class LogEvent

Represents a log event

Inheritance
System.Object
LogEvent
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ES.Ascom.Alpaca.Client.Logging
Assembly: ES.Ascom.Alpaca.Client.dll
Syntax
public class LogEvent

Constructors

| Improve this Doc View Source

LogEvent(LogLevel, String, Exception, String, Object[])

Initializes a new LogEvent

Declaration
public LogEvent(LogLevel logLevel, string eventId = null, Exception exception = null, string message = null, object[] propertyValues = null)
Parameters
Type Name Description
LogLevel logLevel

Level of the event

System.String eventId

Id of the event. Some logger call this information as a "context"

System.Exception exception

Exception related to this event

System.String message

Message to write in the log

System.Object[] propertyValues

List of parameters that can be use to format the message

Properties

| Improve this Doc View Source

EventId

Id of the event. Some logger call this information as a "context"

Declaration
public string EventId { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Exception

Exception related to this event

Declaration
public Exception Exception { get; }
Property Value
Type Description
System.Exception
| Improve this Doc View Source

LogLevel

Level of the event

Declaration
public LogLevel LogLevel { get; }
Property Value
Type Description
LogLevel
| Improve this Doc View Source

Message

Message to write in the log

Declaration
public string Message { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

PropertyValues

List of parameters that can be use to format the message

Declaration
public object[] PropertyValues { get; }
Property Value
Type Description
System.Object[]
  • Improve this Doc
  • View Source
Back to top Generated by DocFX