An entry to be logged.
Default constructor
public Void LogEntry()
Initializes a new instance of LogEntry.
public Void LogEntry(message, level, categories, tenantName, activityId, eventId, stopwatch, template, extendedProperties)
Name | Type | Summary |
---|---|---|
message | Object | Message to be written. |
level | LogLevel | Log entry level. |
categories | ICollection<String> | Log entry categories. |
tenantName | String | Tenant name. |
activityId | String | Activity Id. |
eventId | EventId | Event Id. |
stopwatch | Stopwatch | An Stopwatch. |
template | String | Template to be used to write this entry. |
extendedProperties | IDictionary<String, Object> | Extended properties. |
Initializes a new instance of LogEntry.
public Void LogEntry(message, level, category)
Name | Type | Summary |
---|---|---|
message | Object | Message to be written. |
level | LogLevel | Log entry level. |
category | String | Log entry category. |
Initializes a new instance of LogEntry.
public Void LogEntry(message, level, category, tenantName)
Name | Type | Summary |
---|---|---|
message | Object | Message to be written. |
level | LogLevel | Log entry level. |
category | String | Log entry category. |
tenantName | String | Tenant name. |
Initializes a new instance of LogEntry.
public Void LogEntry(message, level, category, tenantName, activityId, eventId, stopwatch, template, extendedProperties)
Name | Type | Summary |
---|---|---|
message | Object | Message to be written. |
level | LogLevel | Log entry level. |
category | String | Log entry category. |
tenantName | String | Tenant name. |
activityId | String | Activity Id. |
eventId | EventId | Event Id. |
stopwatch | Stopwatch | An Stopwatch. |
template | String | Template to be used to write this entry. |
extendedProperties | IDictionary<String, Object> | Extended properties. |
Activity Id
public String ActivityId { get; set; }
Application domain name.
public String AppDomainName { get; set; }
Entry categories used to route the log entry.
public ICollection<String> Categories { get; set; }
Extended properties.
public IDictionary<String, Object> ExtendedProperties { get; set; }
Machine name.
public String MachineName { get; set; }
Id of the thread.
public String ManagedThreadId { get; set; }
Thread name.
public String ManagedThreadName { get; set; }
Message to be logged.
public String Message { get; set; }
A Stopwatch with timing information.
public Stopwatch Stopwatch { get; set; }
The templates used to format the log entry.
public String Template { get; set; }
Tenant name for multi-tenant applications.
public String TenantName { get; set; }
Date and time of the log entry.
public DateTime Timestamp { get; set; }
Returns a textual repredentation of the log entry.
public String ToString()