YNICTE/Base/Lib/Logging.cs

40 lines
875 B
C#
Raw Permalink Normal View History

2020-10-12 14:39:23 +09:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;
using log4net.Config;
namespace NP.Base
{
public class Logging
{
public static ILog DAOLog
{
get
{
log4net.Config.XmlConfigurator.Configure();
return LogManager.GetLogger("log_dao");
}
}
public static ILog APPLOG
{
get
{
log4net.Config.XmlConfigurator.Configure();
return LogManager.GetLogger("log_app");
}
}
public static ILog CommonLog
{
get
{
log4net.Config.XmlConfigurator.Configure();
return LogManager.GetLogger("log_common");
}
}
}
}