jj: add LogFactory
This commit is contained in:
parent
db7cafdbf8
commit
ab22c834de
@ -72,6 +72,8 @@ Public Class LogConfig
|
|||||||
Private ReadOnly failSafePath As String = Path.GetTempPath()
|
Private ReadOnly failSafePath As String = Path.GetTempPath()
|
||||||
Private ReadOnly basePath As String = failSafePath
|
Private ReadOnly basePath As String = failSafePath
|
||||||
|
|
||||||
|
Public ReadOnly Property LogFactory As LogFactory
|
||||||
|
|
||||||
Public Enum PathType As Integer
|
Public Enum PathType As Integer
|
||||||
AppData = 0
|
AppData = 0
|
||||||
CurrentDirectory = 1
|
CurrentDirectory = 1
|
||||||
@ -173,13 +175,18 @@ Public Class LogConfig
|
|||||||
config.AddRuleForOneLevel(LogLevel.Info, TARGET_DETAIL)
|
config.AddRuleForOneLevel(LogLevel.Info, TARGET_DETAIL)
|
||||||
|
|
||||||
' Save config
|
' Save config
|
||||||
LogManager.Configuration = config
|
LogFactory = New LogFactory With {
|
||||||
|
.Configuration = config
|
||||||
|
}
|
||||||
|
'LogManager.Configuration = config
|
||||||
|
|
||||||
' Save log paths for files/directory
|
' Save log paths for files/directory
|
||||||
LogDirectory = basePath
|
LogDirectory = basePath
|
||||||
LogFile = GetCurrentLogFilePath()
|
LogFile = GetCurrentLogFilePath()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
''' <summary>
|
''' <summary>
|
||||||
''' Returns the full path of the current default log file.
|
''' Returns the full path of the current default log file.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user