// Author: Gockner, Simon // Created: 2019-09-27 // Copyright(c) 2019 SimonG. All Rights Reserved. using System; using Lib.Logging.Interfaces; namespace Lib.Logging { /// /// Implementation of /// public class LogMessage : ILogMessage { /// /// The of the /// public LogLevels LogLevel { get; set; } /// /// The of the /// public DateTime Timestamp { get; set; } /// /// The of the /// public ILogComponent? Component { get; set; } /// /// The of the /// public string? Message { get; set; } /// /// Builds the out of all parts and returns it as a /// /// The as a public override string ToString() => $"{Timestamp:u}: [{Component}] {Message}\n"; } }