Dear eli,
unfortunatelly this is a known problem of pattern based messages. You can find a discussion of that problem in this thread:
http://forum.log4view.com/NLog-multiline-Log-Message-tp245.htmlTo sum up, the possible solutions are:
- Use the xml layout (highly recommended by us)
- Use a layout renderer to remove newlines within your message when logging them:
https://github.com/NLog/NLog/wiki/Replace-NewLines-Layout-Renderer- Add a specific identifier to the start of your pattern, e.g.:
#MessageStart# %-5level | %date{ABSOLUTE} | %-4thread | %30.30logger | %message%newlineYours sincerely
Philipp Lauchner
PROSA GmbH Development & Support