コード例 #1
0
 public SimpleLogger(SimpleLoggerConfig config)
 {
     this._config = config;
     init(config);
 }
コード例 #2
0
        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);
        }