Table of Contents

Class LogMessage

Namespace
Homa.Sdk.Logging
Assembly
Homa.Sdk.Logging.dll

A message that has been logged.

public class LogMessage
Inheritance
LogMessage
Inherited Members

Properties

Context

The context associated with that message.

public Object Context { get; }

Property Value

Object

Exception

The exception associated with that message.

public Exception Exception { get; }

Property Value

Exception

IsDiscarded

Returns true if this is a discarded log message.

public bool IsDiscarded { get; set; }

Property Value

bool
See Also

Level

The log level of the message.

public LogLevel Level { get; }

Property Value

LogLevel

Message

The text content of the message.

public string Message { get; }

Property Value

string

SourceCategories

The categories associated with that message, from higher to lower priority.

public IReadOnlyList<string> SourceCategories { get; }

Property Value

IReadOnlyList<string>

StackTrace

The stack trace of where the message was logged. May be null.

public StackTrace StackTrace { get; }

Property Value

StackTrace

Timestamp

When the message was logged.

public DateTime Timestamp { get; }

Property Value

DateTime