jj: Logging Version 0.0.6 - Add Log Directory for appdata path
This commit is contained in:
@@ -173,7 +173,6 @@ Public Class LogConfig
|
||||
basePath = Path.Combine(appDataDir, companyName, productName, FOLDER_NAME_LOG)
|
||||
ElseIf logPath = PathType.CurrentDirectory Then
|
||||
Dim currentDirectory As String = My.Application.Info.DirectoryPath
|
||||
|
||||
basePath = Path.Combine(currentDirectory, FOLDER_NAME_LOG)
|
||||
Else 'Custom Path
|
||||
basePath = customLogPath
|
||||
@@ -197,7 +196,7 @@ Public Class LogConfig
|
||||
End Using
|
||||
|
||||
File.Delete(fileAccessPath)
|
||||
Catch ex As UnauthorizedAccessException
|
||||
Catch ex As Exception
|
||||
' If creation fails, use failSafe path
|
||||
basePath = failSafePath
|
||||
End Try
|
||||
|
||||
Reference in New Issue
Block a user