使用微软企业库-日志
using Microsoft.Practices.EnterpriseLibrary.Logging;
/// <summary>
///使用微软企业库-日志
/// </summary>
public class EnterpriseLogging
{
public EnterpriseLogging()
{
LogEntry log = new LogEntry();
log.EventId = 1;
log.Message = "";
Logger.Write(log);
}
}