Exemplo n.º 1
0
 public FileLog()
 {
     mLogPath = System.IO.Directory.GetCurrentDirectory() +
                System.IO.Path.DirectorySeparatorChar + "logs" + System.IO.Path.DirectorySeparatorChar;
     if (!System.IO.Directory.Exists(mLogPath))
     {
         System.IO.Directory.CreateDirectory(mLogPath);
     }
     mDispatcher = new SingleThreadDispatcher <ServerLogEventArgs>(OnWriteLog);
 }
Exemplo n.º 2
0
 public FileLogWriter(string type)
 {
     Type     = type;
     mLogPath = System.IO.Directory.GetCurrentDirectory() +
                System.IO.Path.DirectorySeparatorChar + "logs" + System.IO.Path.DirectorySeparatorChar;
     if (!System.IO.Directory.Exists(mLogPath))
     {
         System.IO.Directory.CreateDirectory(mLogPath);
     }
     mDispatcher = new SingleThreadDispatcher <LogItem>(OnWriteLog);
 }