30 lines
838 B
C#
30 lines
838 B
C#
using System;
|
|
|
|
namespace BeWoDatabaseTerminator.Utils
|
|
{
|
|
public static class LogUtils
|
|
{
|
|
public static void LogMessage(string message, ConsoleColor foreground, ConsoleColor background)
|
|
{
|
|
Console.ForegroundColor = foreground;
|
|
Console.BackgroundColor = background;
|
|
|
|
Console.WriteLine(message);
|
|
|
|
Console.ForegroundColor = ConsoleColor.Gray;
|
|
Console.BackgroundColor = ConsoleColor.Black;
|
|
}
|
|
|
|
public static void LogError(Exception exception)
|
|
{
|
|
Console.ForegroundColor = ConsoleColor.Red;
|
|
Console.BackgroundColor = ConsoleColor.Black;
|
|
|
|
Console.WriteLine(exception);
|
|
|
|
Console.ForegroundColor = ConsoleColor.Gray;
|
|
Console.BackgroundColor = ConsoleColor.Black;
|
|
}
|
|
}
|
|
}
|