Add new Temp option to Logging
This commit is contained in:
parent
1d62d18ced
commit
ec779f7697
@ -102,6 +102,7 @@ Public Class LogConfig
|
|||||||
AppData = 0
|
AppData = 0
|
||||||
CurrentDirectory = 1
|
CurrentDirectory = 1
|
||||||
CustomPath = 2
|
CustomPath = 2
|
||||||
|
Temp = 3
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
@ -182,6 +183,8 @@ Public Class LogConfig
|
|||||||
If LogPath = PathType.AppData Then
|
If LogPath = PathType.AppData Then
|
||||||
Dim appDataDir = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
|
Dim appDataDir = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
|
||||||
basePath = Path.Combine(appDataDir, CompanyName, ProductName, FOLDER_NAME_LOG)
|
basePath = Path.Combine(appDataDir, CompanyName, ProductName, FOLDER_NAME_LOG)
|
||||||
|
ElseIf LogPath = PathType.Temp Then
|
||||||
|
basePath = failSafePath
|
||||||
Else 'Custom Path
|
Else 'Custom Path
|
||||||
basePath = CustomLogPath
|
basePath = CustomLogPath
|
||||||
End If
|
End If
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user