NLog.xLogger
NLog.xLogger copied to clipboard
Breakup of blocks in multi-threaded environments
Currently blocks of text can be interrupted in a multi-threaded environment. The solution is to concatenate all lines in a block (separated by linebreaks) and to use a single call to Log() to log them. This behavior should be selectable via a field.
My current strategy would involve sending the lines to Multiline() in an array and allowing that method to determine whether to concatenate the lines or log them indivdually.
The handling of linebreaks is determined by the NLog configuration, and it appears as though it is possible to maintain existing functionality using the solution shared here:
http://stackoverflow.com/questions/34333794/print-a-multi-line-message-with-nlog