mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-14 11:44:35 +01:00
add support for loglevel color configuration
This commit is contained in:
@@ -23,8 +23,8 @@ namespace AscNet.GameServer
|
||||
this.id = id;
|
||||
client = tcpClient;
|
||||
// TODO: add session based configuration? maybe from database?
|
||||
log = new(typeof(Session), LogLevel.DEBUG, LogLevel.DEBUG);
|
||||
|
||||
log = new(typeof(Session), id, LogLevel.DEBUG, LogLevel.DEBUG);
|
||||
log.LogLevelColor[LogLevel.INFO] = ConsoleColor.Cyan;
|
||||
Task.Run(ClientLoop);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user