Table of Contents

Class TimestampLocalLogger

Namespace
Stride.Core.Diagnostics
Assembly
Stride.Core.dll

A logger that stores messages locally with their timestamp, useful for internal log scenarios.

public class TimestampLocalLogger : Logger, ILogger
Inheritance
TimestampLocalLogger
Implements
Inherited Members
Extension Methods

Constructors

TimestampLocalLogger(DateTime, string)

Initializes a new instance of the TimestampLocalLogger class.

public TimestampLocalLogger(DateTime startTime, string moduleName = null)

Parameters

startTime DateTime
moduleName string

Properties

Messages

Gets the messages logged to this instance.

public List<TimestampLocalLogger.Message> Messages { get; }

Property Value

List<TimestampLocalLogger.Message>

The messages.

Methods

LogRaw(ILogMessage)

Internal method used to log a message. All Info, Debug, Error...etc. methods are calling this method.

protected override void LogRaw(ILogMessage logMessage)

Parameters

logMessage ILogMessage

The log message.