chore(logging): Migrate some logs to ILogger (#582)

This commit is contained in:
Pedro Pardal 2021-04-22 17:45:49 +02:00 • committed by GitHub
parent 421d852991
commit c6cbda6f52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 103 additions and 76 deletions

View file

@ -16,12 +16,16 @@
using System;
using System.Buffers;
using Server.Accounting;
using Server.Items;
using Server.Logging;
using Server.Text;
namespace Server.Network
{
public static class ConnectUO
{
private static readonly ILogger logger = LogFactory.GetLogger(typeof(ConnectUO));
public enum ConnectUOServerType
{
RunUO,
@ -59,10 +63,7 @@ namespace Server.Network
}
catch
{
Utility.PushColor(ConsoleColor.Red);
Console.WriteLine("ConnectUO token could not be parsed");
Console.WriteLine("Make sure modernuo.json is properly configured");
Utility.PopColor();
logger.Warning("ConnectUO token could not be parsed. Make sure modernuo.json is properly configured");
_token = null;
}