// Author: Simon Gockner
// Created: 2020-02-08
// Copyright(c) 2020 SimonG. All Rights Reserved.
using System;
using GBase.Logging.Interfaces;
namespace GBase.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()
{
return $"{Timestamp:u}: [{Component}] {Message}\n";
}
}
}