chore(logging): Migrate some logs to ILogger (#582)
This commit is contained in:
parent
421d852991
commit
c6cbda6f52
16 changed files with 103 additions and 76 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue