public SimpleLogger(SimpleLoggerConfig config) { this._config = config; init(config); }
private void init(SimpleLoggerConfig config) { string _LogDirectoryName = config.LogDirectoryName.EndsWith(@"\") ? config.LogDirectoryName : config.LogDirectoryName + @"\"; string path = String.Format("{0}{1}", _LogDirectoryName, this.getFileName()); _fileStream = new FileStream(path, FileMode.Append, FileAccess.Write, FileShare.ReadWrite); }