Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何配置格式化程序不从记录的消息中删除“新行”?
logAttribute.Message="@p1='aa'\n@p2='bb'"
我想在日志中找到:
@p1='aa' @p2='bb'
不是
@p1='aa'@p2='bb'
使用文字字符串并强制实际中断。不优雅,但会完成这项工作。
或者,编写您的自定义格式化程序。