chore: force .log extension to log files
This commit is contained in:
parent
d78c42a653
commit
3912706d27
@ -14,6 +14,9 @@ public class FileLogger : LoggerBase
|
|||||||
|
|
||||||
public FileLogger(string filePath)
|
public FileLogger(string filePath)
|
||||||
{
|
{
|
||||||
|
if (!filePath.EndsWith(".log"))
|
||||||
|
filePath += ".log";
|
||||||
|
|
||||||
FilePath = filePath;
|
FilePath = filePath;
|
||||||
|
|
||||||
bool isRelativePath = Path.GetFullPath(filePath).CompareTo(filePath) != 0;
|
bool isRelativePath = Path.GetFullPath(filePath).CompareTo(filePath) != 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user