示例#1
0
 /// <summary>
 /// 启动日志
 /// </summary>
 protected void StartLog()
 {
     // 启动日志
     _logger = new EZLogger(
         @"Logs\IpMulticast_" + DateTime.Now.ToString("yyyyMMdd") + ".log",
         true,
         (uint)EZLogger.Level.All);
     _logger.Start();
 }
示例#2
0
 /// <summary>
 /// 启动日志
 /// </summary>
 protected void StartLog()
 {
     // 启动日志
     _logger = new EZLogger(
         Path.Combine(Environment.CurrentDirectory, "Logs\\TcpServerLog_" + DateTime.Now.ToString("yyyyMMdd") + ".log"),
         true,
         (uint)EZLogger.Level.All);
     _logger.Start();
 }