Modules.Logging: Version 2.0.0.0

This commit is contained in:
Jonathan Jenne
2020-03-20 13:48:43 +01:00
parent a437359114
commit 3449b16d69
3 changed files with 57 additions and 47 deletions

View File

@@ -2,11 +2,13 @@
Public Class Logger
Inherits NLog.Logger
Implements ILogger
''' <summary>
''' Prints a preformatted Block including a block identifier
''' </summary>
''' <param name="blockId">A unique Identifier for this block, eg. DocId, FullPath, ..</param>
<DebuggerStepThrough()>
Public Sub NewBlock(blockId As String)
Dim message As String = $"-----> Start of Block {blockId}"
Dim logEventInfo As New LogEventInfo(LogLevel.Info, Name, message)
@@ -15,6 +17,7 @@ Public Class Logger
Log(WrapperType, logEventInfo)
End Sub
<DebuggerStepThrough()>
Public Sub EndBlock()
Dim message As String = $"<----- End of Block"
Dim logEventInfo As New LogEventInfo(LogLevel.Info, Name, message)