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.
22 lines
505 B
C#
22 lines
505 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Common.Logging;
|
|
using Common.Logging.Configuration;
|
|
using Common.Logging.NLog;
|
|
|
|
namespace POSV.Utils
|
|
{
|
|
public class CommonLoggingAdapter
|
|
{
|
|
public static void AdapterLogger()
|
|
{
|
|
//将Common-Logging日志采用Nlog输出
|
|
var adaptor = new NLogLoggerFactoryAdapter(new NameValueCollection());
|
|
|
|
LogManager.Adapter = adaptor;
|
|
}
|
|
}
|
|
}
|