40 lines
875 B
C#
40 lines
875 B
C#
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");
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|