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 SourceLogEvent(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 SourceEventId
Id of the event. Some logger call this information as a "context"
Declaration
public string EventId { get; }
Property Value
Type | Description |
---|---|
System.String |
Exception
Exception related to this event
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
System.Exception |
LogLevel
Level of the event
Declaration
public LogLevel LogLevel { get; }
Property Value
Type | Description |
---|---|
LogLevel |
Message
Message to write in the log
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
System.String |
PropertyValues
List of parameters that can be use to format the message
Declaration
public object[] PropertyValues { get; }
Property Value
Type | Description |
---|---|
System.Object[] |