Logging: Remove obsolete log target
This commit is contained in:
parent
da8ba360ca
commit
79e10ef2f6
@ -452,12 +452,11 @@ Public Class LogConfig
|
|||||||
|
|
||||||
' Add default targets
|
' Add default targets
|
||||||
_config.AddTarget(TARGET_ERROR_EX, GetErrorExceptionLogTarget(_basePath))
|
_config.AddTarget(TARGET_ERROR_EX, GetErrorExceptionLogTarget(_basePath))
|
||||||
_config.AddTarget(TARGET_ERROR, GetErrorLogTarget(_basePath))
|
|
||||||
_config.AddTarget(TARGET_DEFAULT, GetDefaultLogTarget(_basePath))
|
_config.AddTarget(TARGET_DEFAULT, GetDefaultLogTarget(_basePath))
|
||||||
_config.AddTarget(TARGET_DEBUG, GetDebugLogTarget(_basePath))
|
_config.AddTarget(TARGET_DEBUG, GetDebugLogTarget(_basePath))
|
||||||
_config.AddTarget(TARGET_TRACE, GetTraceLogTarget(_basePath))
|
_config.AddTarget(TARGET_TRACE, GetTraceLogTarget(_basePath))
|
||||||
_config.AddTarget(TARGET_JSON, GetJsonLogTarget(_basePath))
|
_config.AddTarget(TARGET_JSON, GetJsonLogTarget(_basePath))
|
||||||
'_config.AddTarget(TARGET_MEMORY, GetMemoryDebugTarget())
|
|
||||||
|
|
||||||
' Add default rules
|
' Add default rules
|
||||||
AddDefaultRules(_config)
|
AddDefaultRules(_config)
|
||||||
@ -575,19 +574,7 @@ Public Class LogConfig
|
|||||||
Return errorLogWithExceptions
|
Return errorLogWithExceptions
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Private Function GetErrorLogTarget(basePath As String) As FileTarget
|
|
||||||
Dim errorLog As New FileTarget() With {
|
|
||||||
.FileName = Path.Combine(basePath, FILE_NAME_FORMAT_ERROR),
|
|
||||||
.Name = TARGET_ERROR,
|
|
||||||
.Layout = LOG_FORMAT_DEFAULT,
|
|
||||||
.MaxArchiveFiles = MAX_ARCHIVE_FILES_DEFAULT,
|
|
||||||
.ArchiveEvery = ARCHIVE_EVERY,
|
|
||||||
.KeepFileOpen = KEEP_FILES_OPEN,
|
|
||||||
.Encoding = Text.Encoding.Unicode
|
|
||||||
}
|
|
||||||
|
|
||||||
Return errorLog
|
|
||||||
End Function
|
|
||||||
|
|
||||||
Private Function GetDebugLogTarget(basePath As String) As FileTarget
|
Private Function GetDebugLogTarget(basePath As String) As FileTarget
|
||||||
Dim debugLog As New FileTarget() With {
|
Dim debugLog As New FileTarget() With {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user