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

@ -2,6 +2,7 @@ using System;
using System.Diagnostics;
using System.IO;
using Server.Gumps;
using Server.Logging;
using Server.Mobiles;
using Server.Network;
@ -9,6 +10,8 @@ namespace Server.Misc
{
public static class ClientVerification
{
private static readonly ILogger logger = LogFactory.GetLogger(typeof(ClientVerification));
private static bool m_DetectClientRequirement;
private static OldClientResponse m_OldClientResponse;
@ -65,13 +68,11 @@ namespace Server.Misc
if (Required != null)
{
Utility.PushColor(ConsoleColor.White);
Console.WriteLine(
logger.Information(
"Restricting client version to {0}. Action to be taken: {1}",
Required,
m_OldClientResponse
);
Utility.PopColor();
}
}