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.
我们正在使用语义日志记录应用程序块 (SLAB),目前有 300 多种日志记录方法。
有没有一种方法可以轻松地在每个 WriteEvent 调用中包含一个值,而无需更新所有的日志记录方法?例如,包括写入日志的每个事件的客户端 IP 地址。
谢谢!
看起来我可以使用 IEventTextFormatter 并在那里注入值。