Initial commit: Client Doc docs Server Tools
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using XWorld.Framework;
|
||||
|
||||
namespace XWorld.Server.Host
|
||||
{
|
||||
public sealed class ConsoleLogger : ILogger
|
||||
{
|
||||
private readonly string _prefix;
|
||||
public ConsoleLogger(string prefix = "") { _prefix = prefix; }
|
||||
public void Info(string message) => Console.WriteLine($"[INFO]{_prefix} {message}");
|
||||
public void Warn(string message) => Console.WriteLine($"[WARN]{_prefix} {message}");
|
||||
public void Error(string message) => Console.WriteLine($"[ERROR]{_prefix} {message}");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user