mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-02 00:57:26 +00:00
22 lines
481 B
C#
22 lines
481 B
C#
using Discord;
|
|
|
|
namespace Content.DiscordBot;
|
|
|
|
public static class Logger
|
|
{
|
|
public static Task Log(LogMessage msg)
|
|
{
|
|
return Console.Out.WriteLineAsync($"[{msg.Severity.ToString().ToUpper()}] {msg.Message}");
|
|
}
|
|
|
|
public static Task Info(string msg)
|
|
{
|
|
return Console.Out.WriteLineAsync($"[INFO] {msg}");
|
|
}
|
|
|
|
public static Task Error(string msg, Exception e)
|
|
{
|
|
return Console.Out.WriteLineAsync($"[ERROR] {msg}\n{e}");
|
|
}
|
|
}
|