2018-08-01 21:34:58 +08:00

36 lines
933 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using log4net;
namespace ShadowEditor.Server.Helpers
{
/// <summary>
/// 文件记录帮助类记录在文本文件可自动记录NHibernate和Spring.NET的日志
/// </summary>
public class LogHelper
{
/// <summary>
/// 获取一个命名日志记录工具
/// </summary>
/// <param name="key"></param>
/// <returns></returns>
public static ILog GetLogger(string key)
{
return LogManager.GetLogger("myLogger");
}
/// <summary>
/// 获取一个type类型日志记录工具
/// </summary>
/// <param name="type"></param>
/// <returns></returns>
public static ILog GetLogger(Type type)
{
return LogManager.GetLogger(type);
}
}
}