You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
880 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public static class Log
{
public static void Info(object value)
{
Log.Color(ConsoleColor.Yellow);
Console.WriteLine("[!] " + value.ToString());
Log.Color();
}
public static void Critical(object value)
{
Log.Color(ConsoleColor.Cyan);
Console.WriteLine("[+] " + value.ToString());
}
public static void Error(object value)
{
Log.Color(ConsoleColor.Red);
Console.WriteLine("[-] " + value.ToString());
Log.Color();
}
public static void Fatal(object value)
{
Error(value);
Console.ReadLine();
Environment.Exit(-1);
}
private static void Color(ConsoleColor color = ConsoleColor.White) => Console.ForegroundColor = color;
}