【发布时间】:2015-11-24 11:30:45
【问题描述】:
例如,我有函数doSomething(string a, string b, string c)。我想记录函数的执行。我想做这样的事情:
Logger.Debug("Method doSomething executed", a, b, c)
避免在消息中写入参数,因为字符串可能很长。此功能类似于.Enrich.WithProperty("PropertyName", Value)。
但我不能在 Logger 构造函数中执行此操作。
记录写入SEQ。
【问题讨论】: