mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-25 08:27:28 +00:00
Theres documentation at https://sylvessa.zip/fourkit/ now. And a bunch of other changes. Check the discord server for a more comprehensive list
20 lines
736 B
C#
20 lines
736 B
C#
namespace Minecraft.Server.FourKit;
|
|
|
|
internal static class ServerLog
|
|
{
|
|
private static string Timestamp() =>
|
|
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff");
|
|
|
|
public static void Debug(string category, string message) =>
|
|
Console.WriteLine($"[{Timestamp()}][DEBUG][{category}] {message}");
|
|
|
|
public static void Info(string category, string message) =>
|
|
Console.WriteLine($"[{Timestamp()}][INFO][{category}] {message}");
|
|
|
|
public static void Warn(string category, string message) =>
|
|
Console.WriteLine($"[{Timestamp()}][WARN][{category}] {message}");
|
|
|
|
public static void Error(string category, string message) =>
|
|
Console.WriteLine($"[{Timestamp()}][ERROR][{category}] {message}");
|
|
}
|