// Author: Gockner, Simon // Created: 2019-09-26 // Copyright(c) 2019 SimonG. All Rights Reserved. using System; using System.Threading.Tasks; using Lib.Logging.Interfaces; using Lib.Logging.Loggers.Interfaces; namespace Lib.Logging.Loggers { /// /// An that writes log messages to the /// public class ConsoleLogger : IConsoleLogger { /// /// Write the given to the /// /// The public async Task Write(ILogMessage message) => await Task.Run(() => Console.Write(message.ToString())); /// /// the /// public async ValueTask DisposeAsync() => await Task.Run(Console.Clear); } }