From 79e10ef2f6c5958a30e16c967a884898bb070ea7 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Mon, 18 Sep 2023 09:20:57 +0200 Subject: [PATCH] Logging: Remove obsolete log target --- Logging/LogConfig.vb | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/Logging/LogConfig.vb b/Logging/LogConfig.vb index 3524a072..2a22c86d 100644 --- a/Logging/LogConfig.vb +++ b/Logging/LogConfig.vb @@ -452,12 +452,11 @@ Public Class LogConfig ' Add default targets _config.AddTarget(TARGET_ERROR_EX, GetErrorExceptionLogTarget(_basePath)) - _config.AddTarget(TARGET_ERROR, GetErrorLogTarget(_basePath)) _config.AddTarget(TARGET_DEFAULT, GetDefaultLogTarget(_basePath)) _config.AddTarget(TARGET_DEBUG, GetDebugLogTarget(_basePath)) _config.AddTarget(TARGET_TRACE, GetTraceLogTarget(_basePath)) _config.AddTarget(TARGET_JSON, GetJsonLogTarget(_basePath)) - '_config.AddTarget(TARGET_MEMORY, GetMemoryDebugTarget()) + ' Add default rules AddDefaultRules(_config) @@ -575,19 +574,7 @@ Public Class LogConfig Return errorLogWithExceptions 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 Dim debugLog As New FileTarget() With {