Skip to content

Commit

Permalink
wait that should be File.AppendAllText
Browse files Browse the repository at this point in the history
  • Loading branch information
dninemfive committed Jul 20, 2024
1 parent 11f89c1 commit 45958be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions logging/Log.Components.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public static ILogComponent Console
/// </summary>
/// <param name="filePath">The path of the file to write to.</param>
public static ILogComponent WriteTextTo(string filePath)
=> new DelegateLogComponent((obj) => File.WriteAllText(filePath, $"{obj}"),
(obj) => File.WriteAllText(filePath, $"{obj}\n"));
=> new DelegateLogComponent((obj) => File.AppendAllText(filePath, $"{obj}"),
(obj) => File.AppendAllText(filePath, $"{obj}\n"));
/// <summary>
/// An <see cref="ILogComponent"/> which writes to the specified stream.
/// </summary>
Expand Down

0 comments on commit 45958be

Please sign in to comment.