* „Linie 1: Add the import for the NLog namespace so that 'NLog.Logger' is recognized.
Linie 10: Since the constructor now takes an 'NLog.Logger' directly, assign it to the '_Logger' field. Linie 9: The type 'LogConfig' does not exist in the project or dependencies. The constructor now directly accepts an 'NLog.Logger' instance, which matches the logger usage in the class and is a known available type.“ in Datei „Config\ConfigUtils.vb“
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
Imports System.IO
|
Imports System.IO
|
||||||
|
Imports NLog
|
||||||
|
|
||||||
Public Class ConfigUtils
|
Public Class ConfigUtils
|
||||||
Private ReadOnly _Logger As Logger
|
Private ReadOnly _Logger As Logger
|
||||||
@@ -6,8 +7,8 @@ Public Class ConfigUtils
|
|||||||
|
|
||||||
Private Const MIGRATE_DIRECTORY As String = "Migrate"
|
Private Const MIGRATE_DIRECTORY As String = "Migrate"
|
||||||
|
|
||||||
Public Sub New(LogConfig As LogConfig)
|
Public Sub New(Logger As NLog.Logger)
|
||||||
_Logger = LogConfig.GetLogger()
|
_Logger = Logger
|
||||||
' _File = New FilesystemEx(LogConfig)
|
' _File = New FilesystemEx(LogConfig)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user