Class LogMessage
Inheritance
object
Namespace: Umbraco.Cms.Core.Logging.Viewer
Assembly: Umbraco.Infrastructure.dll
Syntax
[Obsolete("Use ILogEntry instead. Scheduled for removal in Umbraco 15.")]
public class LogMessage
Properties
View SourceException
An exception associated with the log event, or null.
Declaration
public string? Exception { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Level
The level of the event.
Declaration
public LogEventLevel Level { get; set; }
Property Value
| Type | Description |
|---|---|
| LogEventLevel |
MessageTemplateText
The message template describing the log event.
Declaration
public string? MessageTemplateText { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Properties
Properties associated with the log event, including those presented in Serilog.Events.LogEvent.MessageTemplate.
Declaration
public IReadOnlyDictionary<string, LogEventPropertyValue>? Properties { get; set; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyDictionary<string, LogEventPropertyValue> |
RenderedMessage
The message template filled with the log event properties.
Declaration
public string? RenderedMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Timestamp
The time at which the log event occurred.
Declaration
public DateTimeOffset Timestamp { get; set; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset |