Add new Temp option to Logging

This commit is contained in:
Jonathan Jenne 2020-04-06 15:18:04 +02:00
parent 1d62d18ced
commit ec779f7697

View File

@ -102,6 +102,7 @@ Public Class LogConfig
AppData = 0
CurrentDirectory = 1
CustomPath = 2
Temp = 3
End Enum
''' <summary>
@ -182,6 +183,8 @@ Public Class LogConfig
If LogPath = PathType.AppData Then
Dim appDataDir = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
basePath = Path.Combine(appDataDir, CompanyName, ProductName, FOLDER_NAME_LOG)
ElseIf LogPath = PathType.Temp Then
basePath = failSafePath
Else 'Custom Path
basePath = CustomLogPath
End If