public override void Output(LogInfo info) { switch (info.Type) { case LogType.Execption: Console.BackgroundColor = ConsoleColor.Red; Console.ForegroundColor = ConsoleColor.White; Console.WriteLine(info.Message); break; case LogType.HandlerExecutionError: Console.BackgroundColor = ConsoleColor.Blue; Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine(info.Message); break; case LogType.MqlError: Console.BackgroundColor = ConsoleColor.Yellow; Console.ForegroundColor = ConsoleColor.Black; Console.WriteLine(info.Message); break; case LogType.Initializations: Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine(info.Message); break; case LogType.Workflow: Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.Gray; Console.WriteLine(info.Message); break; case LogType.Notifications: Console.BackgroundColor = ConsoleColor.Black; Console.ForegroundColor = ConsoleColor.Cyan; Console.WriteLine(info.Message); break; default: throw new ArgumentOutOfRangeException("Type"); } }
public abstract void Output(LogInfo info);