Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SerializableTimestampLogMessage.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Core;
4 using SiliconStudio.Core.Diagnostics;
5 
6 namespace SiliconStudio.BuildEngine
7 {
8  /// <summary>
9  /// A specialization of the <see cref="SerializableLogMessage"/> class that contains a timestamp information.
10  /// </summary>
11  [DataContract]
13  {
14  /// <summary>
15  /// Initializes a new instance of the <see cref="SerializableTimestampLogMessage"/> class with default values for its properties
16  /// </summary>
18  {
19  }
20 
21  /// <summary>
22  /// Initializes a new instance of the <see cref="SerializableTimestampLogMessage"/> class from a <see cref="TimestampLocalLogger.Message"/> instance.
23  /// </summary>
24  /// <param name="message">The <see cref="TimestampLocalLogger.Message"/> instance to use to initialize properties.</param>
26  : base((LogMessage)message.LogMessage)
27  {
28  Timestamp = message.Timestamp;
29  }
30 
31  /// <summary>
32  /// Gets or sets the timestamp of this message.
33  /// </summary>
34  public long Timestamp { get; set; }
35  }
36 }
A specialization of the SerializableLogMessage class that contains a timestamp information.
A class that represents a copy of a LogMessage that can be serialized.
SerializableTimestampLogMessage(TimestampLocalLogger.Message message)
Initializes a new instance of the SerializableTimestampLogMessage class from a TimestampLocalLogger.Message instance.
A base log message used by the logging infrastructure.
Definition: LogMessage.cs:13
SerializableTimestampLogMessage()
Initializes a new instance of the SerializableTimestampLogMessage class with default values for its p...
A logger that stores messages locally with their timestamp, useful for internal log scenarios...