Exemplo n.º 1
0
        // ReSharper enable InconsistentNaming

        private Logger()
        {
            DirectoryExtensions.CreateDirectoryIfNotExists(Folder);
            // Will create file if one does not exist, otherwise opens existing file
            fs = new FileStream(FileFullName, FileMode.Append, FileAccess.Write, FileShare.None);
            sw = new StreamWriter(fs, Encoding.UTF8);
        }