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.

25 lines
601 B
C#

using log4net;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DSWeb.Job.InsuranceTask
{
public class LoggerManager
{
private ILog _logger = LogManager.GetLogger(typeof(InsuranceTaskJob));
public LoggerManager()
{
log4net.Config.XmlConfigurator.ConfigureAndWatch(new FileInfo(AppDomain.CurrentDomain.BaseDirectory + "log4net.config"));
}
public void Write(string message)
{
_logger.InfoFormat(message);
}
}
}