mirror of
https://github.com/Ellpeck/ExtremelySimpleLogger.git
synced 2024-11-26 19:48:33 +01:00
Compare commits
No commits in common. "4d5478bcf2760dab5be330d4632b988c6a64cc66" and "7838ec967e31969ad7590eb1a8e00ee7f74b0e67" have entirely different histories.
4d5478bcf2
...
7838ec967e
3 changed files with 4 additions and 4 deletions
|
@ -114,7 +114,7 @@ namespace ExtremelySimpleLogger {
|
|||
|
||||
private StreamWriter Append() {
|
||||
try {
|
||||
return new StreamWriter(this.file.Open(FileMode.Append, FileAccess.Write, FileShare.ReadWrite));
|
||||
return this.file.AppendText();
|
||||
} catch (Exception e) {
|
||||
throw new IOException($"Failed to append to directory sink file {this.file}", e);
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||
<PackageIcon>Logo.png</PackageIcon>
|
||||
<VersionPrefix>1.3.1</VersionPrefix>
|
||||
<VersionPrefix>1.3.0</VersionPrefix>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace ExtremelySimpleLogger {
|
|||
return this.file;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private const int OneGb = 1024 * 1024 * 1024;
|
||||
private readonly FileInfo file;
|
||||
private readonly StreamWriter writer;
|
||||
|
@ -94,7 +94,7 @@ namespace ExtremelySimpleLogger {
|
|||
|
||||
private StreamWriter Append() {
|
||||
try {
|
||||
return new StreamWriter(this.file.Open(FileMode.Append, FileAccess.Write, FileShare.ReadWrite));
|
||||
return this.file.AppendText();
|
||||
} catch (Exception e) {
|
||||
throw new IOException($"Failed to append to file sink {this.file}", e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue