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
ILogSourceThe log source.
time
DateTimeOffsetMessage creating time.
level
LogLevelsThe 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
ILogSourceThe log source.
time
DateTimeOffsetMessage creating time.
level
LogLevelsThe level of the log message.
message
stringText 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
Level
The level of the log message.
public LogLevels Level { get; }
Property Value
Message
Message.
public string Message { get; }
Property Value
Source
The log source.
public ILogSource Source { get; set; }
Property Value
Time
Message creating time.
public DateTimeOffset Time { get; set; }
Property Value
Methods
ToString()
public override string ToString()