Class LogInfo
A simple wrapper for some information which is passed to the logger
Inheritance
System.Object
LogInfo
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)
Namespace:Dapplo.Log
Assembly:Dapplo.Log.dll
Syntax
public class LogInfo
Properties
| Improve this Doc View SourceLine
The line of the log
Declaration
public int Line { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LogLevel
The LogLevels enum for the log
Declaration
public LogLevels LogLevel { get; set; }
Property Value
Type | Description |
---|---|
LogLevels |
Method
Method in the Caller (class) from where the log statement came
Declaration
public string Method { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Source
Class from where the log statement came
Declaration
public LogSource Source { get; set; }
Property Value
Type | Description |
---|---|
LogSource |
Timestamp
Timestamp for the log
Declaration
public DateTimeOffset Timestamp { get; }
Property Value
Type | Description |
---|---|
System.DateTimeOffset |
Methods
| Improve this Doc View SourceToString()
Create a string representation of the LogInfo, this by default has a timestamp, level, source, method and line. If the format needs to be changed, LogSettings.LogInfoFormatter can be assigned with your custom formatter Func
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | string |
Overrides
System.Object.ToString()