【发布时间】:2016-07-11 14:11:09
【问题描述】:
Examples for SLAB 看起来像这样:
MyCompanyEventSource.Log.ScalingRequestSubmitted(
request.RoleName,
request.InstanceCount,
context.RuleName,
context.CurrentInstanceCount);
我不喜欢每次添加新事件类型时都必须编辑MyCompanyEventSource。我也不喜欢记录器只能静态使用。我宁愿有这样的东西:
_logger.Log(new ScalingRequestSubmittedEvent(request, context));
我知道我可以自己进行日志记录,但在我完全解雇 SLAB 之前,我想知道我是否不公平。
【问题讨论】: