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
|
|
@ -2,6 +2,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Server.Items;
|
||||
using Server.Logging;
|
||||
|
||||
namespace Server.Multis
|
||||
{
|
||||
|
|
@ -14,6 +15,8 @@ namespace Server.Multis
|
|||
|
||||
public class BaseContestHouse : BaseHouse
|
||||
{
|
||||
private static readonly ILogger logger = LogFactory.GetLogger(typeof(BaseContestHouse));
|
||||
|
||||
public BaseContestHouse(ContestHouseType type, int multiID, Mobile owner, int maxLockDown, int maxSecure)
|
||||
: base(multiID, owner, maxLockDown, maxSecure)
|
||||
{
|
||||
|
|
@ -193,11 +196,11 @@ namespace Server.Multis
|
|||
{
|
||||
if (value.Count > 2)
|
||||
{
|
||||
Console.WriteLine("Warning: More than 2 teleporters detected for {0:X}!", key);
|
||||
logger.Warning("More than 2 teleporters detected for {0:X}!", key);
|
||||
}
|
||||
else if (value.Count <= 1)
|
||||
{
|
||||
Console.WriteLine("Warning: 1 or less teleporters detected for {0:X}!", key);
|
||||
logger.Warning("1 or less teleporters detected for {0:X}!", key);
|
||||
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,12 +18,15 @@ using System.Buffers;
|
|||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Runtime.CompilerServices;
|
||||
using Server.Logging;
|
||||
using Server.Network;
|
||||
|
||||
namespace Server.Multis
|
||||
{
|
||||
public static class HousePackets
|
||||
{
|
||||
private static readonly ILogger logger = LogFactory.GetLogger(typeof(HousePackets));
|
||||
|
||||
public static void SendBeginHouseCustomization(this NetState ns, Serial house)
|
||||
{
|
||||
if (ns == null)
|
||||
|
|
@ -254,7 +257,7 @@ namespace Server.Multis
|
|||
|
||||
if (ce != ZlibError.Okay)
|
||||
{
|
||||
Console.WriteLine("ZLib error: {0} (#{1})", ce, (int)ce);
|
||||
logger.Warning("ZLib error: {0} (#{1})", ce, (int)ce);
|
||||
length = 0;
|
||||
size = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue