LogLayerTimestamp Class

A log layer that prepends a UTC timestamp to every message before forwarding it.

Definition

Namespace: Alteruna.Multiplayer.Core.Log
Assembly: Alteruna.Multiplayer (in Alteruna.Multiplayer.dll) Version: 2.1.3+c5328b35489e83c42e288435f5acf6115fd519e0
C#
public class LogLayerTimestamp : LogLayer
Inheritance
Object    LogBase    LogLayer    LogLayerTimestamp

Remarks

Use TryAddTimestamp(LogBase) to safely add this layer only once to an existing chain.

Constructors

LogLayerTimestamp Initializes a new LogLayerTimestamp wrapping logBase.

Methods

Present Method Present must be overidden by sub classes in order to customize log presentation.
(Overrides LogLayerPresent(LogBaseSeverity, String))
TryAddTimestamp Adds a LogLayerTimestamp to logBase only if one is not already present.

See Also