Improved logging system.
This commit is contained in:
parent
d94b1cb813
commit
98d13ebbbb
24 changed files with 202 additions and 142 deletions
SharpChat/ClientCommands
|
@ -1,4 +1,5 @@
|
|||
using SharpChat.SockChat.S2CPackets;
|
||||
using ZLogger;
|
||||
|
||||
namespace SharpChat.ClientCommands;
|
||||
|
||||
|
@ -18,7 +19,7 @@ public class ShutdownRestartClientCommand(CancellationTokenSource cancellationTo
|
|||
if(cancellationTokenSource.IsCancellationRequested)
|
||||
return;
|
||||
|
||||
Logger.Write("Shutdown requested through Sock Chat command...");
|
||||
ctx.Connection.Logger.ZLogInformation($"Shutdown requested through Sock Chat command...");
|
||||
|
||||
if(ctx.NameEquals("restart"))
|
||||
foreach(Connection conn in ctx.Chat.Connections)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue