4 using System.Collections.Generic;
6 namespace SiliconStudio.Core.Diagnostics
13 private readonly DateTime startTime;
20 this.startTime = startTime;
23 Messages =
new List<Message>();
33 public List<Message> Messages {
get;
private set; }
37 TimeSpan timestamp = DateTime.Now - startTime;
38 Messages.Add(
new Message(timestamp.Ticks, logMessage));
A structure describing a log message associated with a timestamp.
long Timestamp
The timestamp associated to the log message.
Base implementation for ILogger.
override void LogRaw(ILogMessage logMessage)
Internal method used to log a message. All Info, Debug, Error...etc. methods are calling this method...
LogMessageType
Type of a LogMessage.
A base log message used by the logging infrastructure.
Message(long timestamp, ILogMessage logMessage)
Structure constructor.
The base interface for log messages used by the logging infrastructure.
A logger that stores messages locally with their timestamp, useful for internal log scenarios...
ILogMessage LogMessage
The log message.
TimestampLocalLogger(DateTime startTime, string moduleName=null)
Initializes a new instance of the LoggerResult class.