33 lines
693 B
C#
33 lines
693 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using AyCode.Core.Consts;
|
|
|
|
namespace AyCode.Core.Logger
|
|
{
|
|
public static class Logger
|
|
{
|
|
public static void Info(string text)
|
|
{
|
|
Console.WriteLine(text);
|
|
}
|
|
|
|
public static void Warning(string text)
|
|
{
|
|
Console.WriteLine(text);
|
|
}
|
|
|
|
public static void Error(string text)
|
|
{
|
|
Console.WriteLine(text);
|
|
}
|
|
|
|
public static void Error(string text, Exception ex)
|
|
{
|
|
Console.WriteLine($"{text}{AcEnv.NL}{ex.Message}{AcEnv.NL}{ex}");
|
|
}
|
|
}
|
|
}
|