mirror of
https://github.com/Ellpeck/ExtremelySimpleLogger.git
synced 2024-11-26 19:48:33 +01:00
Compare commits
2 commits
7838ec967e
...
4d5478bcf2
Author | SHA1 | Date | |
---|---|---|---|
4d5478bcf2 | |||
205dde65c3 |
3 changed files with 4 additions and 4 deletions
|
@ -114,7 +114,7 @@ namespace ExtremelySimpleLogger {
|
|||
|
||||
private StreamWriter Append() {
|
||||
try {
|
||||
return this.file.AppendText();
|
||||
return new StreamWriter(this.file.Open(FileMode.Append, FileAccess.Write, FileShare.ReadWrite));
|
||||
} 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.0</VersionPrefix>
|
||||
<VersionPrefix>1.3.1</VersionPrefix>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -94,7 +94,7 @@ namespace ExtremelySimpleLogger {
|
|||
|
||||
private StreamWriter Append() {
|
||||
try {
|
||||
return this.file.AppendText();
|
||||
return new StreamWriter(this.file.Open(FileMode.Append, FileAccess.Write, FileShare.ReadWrite));
|
||||
} catch (Exception e) {
|
||||
throw new IOException($"Failed to append to file sink {this.file}", e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue