Class LogEventArgs
The arguments for a log entry
Inheritance
System.Object
System.EventArgs
LogEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Common.Lib.Logging
Assembly: ImageVault.Common.dll
Syntax
public class LogEventArgs : EventArgs
Constructors
LogEventArgs(String, Level, Int32, Object, Exception)
Constructor
Declaration
public LogEventArgs(string name, Level level, int threadId, object message, Exception exception)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | |
| Level | level | |
| System.Int32 | threadId | |
| System.Object | message | |
| System.Exception | exception |
Properties
DateTime
Time of the log event
Declaration
public DateTime DateTime { get; }
Property Value
| Type | Description |
|---|---|
| System.DateTime |
Exception
Any exception of the log event
Declaration
public Exception Exception { get; }
Property Value
| Type | Description |
|---|---|
| System.Exception |
Level
Level of the log event
Declaration
public Level Level { get; }
Property Value
| Type | Description |
|---|---|
| Level |
Message
The message of the log event
Declaration
public object Message { get; }
Property Value
| Type | Description |
|---|---|
| System.Object |
Name
Name of the logger
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
ThreadId
The thread id that the log event occurred on
Declaration
public int ThreadId { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |