/// <inheritdoc /> /// <summary> /// Decorates the inbound message and writes it to the stdout/stderr. /// </summary> public override void Write(Type type, string subject, string message) { var code = CodeFactory.Get(type); // write code Console.ForegroundColor = ConsoleColor.DarkGray; Console.Write(" [ "); Console.ForegroundColor = code.Colour; Console.Write(code.Value); Console.ForegroundColor = ConsoleColor.DarkGray; Console.Write(" ] "); // write subject Console.Write("| "); Console.Write(subject); Console.Write("\t| "); // write message Console.ForegroundColor = ConsoleColor.White; Console.WriteLine(message); }