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 basePath As String = failSafePath
|
||||
|
||||
Public ReadOnly Property LogFactory As LogFactory
|
||||
|
||||
Public Enum PathType As Integer
|
||||
AppData = 0
|
||||
CurrentDirectory = 1
|
||||
@ -173,13 +175,18 @@ Public Class LogConfig
|
||||
config.AddRuleForOneLevel(LogLevel.Info, TARGET_DETAIL)
|
||||
|
||||
' Save config
|
||||
LogManager.Configuration = config
|
||||
LogFactory = New LogFactory With {
|
||||
.Configuration = config
|
||||
}
|
||||
'LogManager.Configuration = config
|
||||
|
||||
' Save log paths for files/directory
|
||||
LogDirectory = basePath
|
||||
LogFile = GetCurrentLogFilePath()
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
''' <summary>
|
||||
''' Returns the full path of the current default log file.
|
||||
''' </summary>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user