MinecraftConsoles/Minecraft.Server.FourKit/ServerLog.cs
sylvessa f5f9aa1cf5 finish rewrite; port to cmake, loads of other changes
Theres documentation at https://sylvessa.zip/fourkit/ now. And a bunch of other changes. Check the discord server for a more comprehensive list
2026-03-21 14:01:49 -05:00

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}");
}