Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
format
  • Loading branch information
superboyiii authored May 12, 2020
1 parent e0ee332 commit ffb8ece
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SystemLog/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ void ILogPlugin.Log(string source, LogLevel level, object message)
var path = Combine(Settings.Default.Path, sb.ToString());
Directory.CreateDirectory(path);
path = Combine(path, $"{now:yyyy-MM-dd}.log");

try
{
File.AppendAllLines(path, new[] { $"[{level}]{log}" });
File.AppendAllLines(path, new[] { $"[{level}]{log}" });
}
catch (IOException)
{
Console.WriteLine("Error writing the log file: " + path);

}
}
}
Expand Down

0 comments on commit ffb8ece

Please sign in to comment.