Exemplo n.º 1
0
 /// <summary>
 /// 启动日志
 /// </summary>
 protected void StartLog()
 {
     // 启动日志
     _logger = new EZLogger(
         @"Logs\IpMulticast_" + DateTime.Now.ToString("yyyyMMdd") + ".log",
         true,
         (uint)EZLogger.Level.All);
     _logger.Start();
 }
Exemplo n.º 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();
 }