mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-23 21:51:29 +00:00
Use line.LineData instead of line.ToString() for logging to file
This commit is contained in:
parent
c3f3d22f3d
commit
f6326525f3
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@ namespace LBPUnion.ProjectLighthouse.Logging {
|
|||
public override void Send(LoggerLine line) {
|
||||
FileHelper.EnsureDirectoryCreated(logsDirectory);
|
||||
|
||||
File.AppendAllText(Path.Combine(logsDirectory, line.LoggerLevel + ".log"), line + "\n");
|
||||
File.AppendAllText(Path.Combine(logsDirectory, "all.log"), line + "\n");
|
||||
File.AppendAllText(Path.Combine(logsDirectory, line.LoggerLevel + ".log"), line.LineData + "\n");
|
||||
File.AppendAllText(Path.Combine(logsDirectory, "all.log"), line.LineData + "\n");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue