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); }
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); }