Table of Contents

Class LogMessage

Namespace
StockSharp.Logging
Assembly
StockSharp.Logging.dll

A debug message.

public class LogMessage
Inheritance
LogMessage
Inherited Members
Extension Methods

Constructors

LogMessage(ILogSource, DateTimeOffset, LogLevels, Func<string>)

Initializes a new instance of the LogMessage.

public LogMessage(ILogSource source, DateTimeOffset time, LogLevels level, Func<string> getMessage)

Parameters

source ILogSource

The log source.

time DateTimeOffset

Message creating time.

level LogLevels

The level of the log message.

getMessage Func<string>

The function returns the text for Message.

LogMessage(ILogSource, DateTimeOffset, LogLevels, string, params object[])

Initializes a new instance of the LogMessage.

public LogMessage(ILogSource source, DateTimeOffset time, LogLevels level, string message, params object[] args)

Parameters

source ILogSource

The log source.

time DateTimeOffset

Message creating time.

level LogLevels

The level of the log message.

message string

Text message.

args object[]

Text message settings. Used if a message is the format string. For details, see Format(string, params object[]).

Properties

IsDispose

Special message initiated from Dispose() method.

public bool IsDispose { get; }

Property Value

bool

Level

The level of the log message.

public LogLevels Level { get; }

Property Value

LogLevels

Message

Message.

public string Message { get; }

Property Value

string

Source

The log source.

public ILogSource Source { get; set; }

Property Value

ILogSource

Time

Message creating time.

public DateTimeOffset Time { get; set; }

Property Value

DateTimeOffset

Methods

ToString()

public override string ToString()

Returns

string