You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using NLog;
|
|
|
|
|
using NLog.Config;
|
|
|
|
|
using NLog.Targets;
|
|
|
|
|
using NLog.Targets.Wrappers;
|
|
|
|
|
using SuperSocket.SocketBase.Logging;
|
|
|
|
|
|
|
|
|
|
namespace POSV.WindowsService.Logging
|
|
|
|
|
{
|
|
|
|
|
public class NLogFactory : ILogFactory
|
|
|
|
|
{
|
|
|
|
|
private static object locker = new object();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initializes a new instance of the <see cref="NLogFactory"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public NLogFactory()
|
|
|
|
|
{
|
|
|
|
|
NLogUtils.InitLogger();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ILog GetLog(string name)
|
|
|
|
|
{
|
|
|
|
|
return new NLogging();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|