Updated packages
This commit is contained in:
@@ -1,23 +1,20 @@
|
||||
using EonaCat.Logger;
|
||||
using EonaCat.Logger.Managers;
|
||||
using EonaCat.Logger.Syslog;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using EonaCat.Logger.Syslog;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace EonaCat.logger.Managers
|
||||
namespace EonaCat.Logger.Managers
|
||||
{
|
||||
public static class LogHelper
|
||||
{
|
||||
private static readonly object _fileLock = new object();
|
||||
private static readonly object FileLock = new object();
|
||||
|
||||
/// <summary>
|
||||
/// Format a message with the specified header
|
||||
@@ -204,7 +201,7 @@ namespace EonaCat.logger.Managers
|
||||
|
||||
internal static void SendFile(ILogger logger, LoggerSettings settings, ELogType logType, string message, int maxTries = 3)
|
||||
{
|
||||
lock (_fileLock)
|
||||
lock (FileLock)
|
||||
{
|
||||
if (logger == null) return;
|
||||
if (settings == null) return;
|
||||
|
||||
Reference in New Issue
Block a user