c# - Can I replace SLAB one-method-per-event with types? -
examples slab tend this:
mycompanyeventsource.log.scalingrequestsubmitted( request.rolename, request.instancecount, context.rulename, context.currentinstancecount);
i don't have edit mycompanyeventsource
every time add new event type. don't logger available staticly. i'd rather have this:
_logger.log(new scalingrequestsubmittedevent(request, context));
i know can roll own logging, before dismiss slab entirely, i'd know if i'm being unfair.
there no way things this
_logger.log(new scalingrequestsubmittedevent(request, context));
and have change logger time wish add new type of event, change information level or keyword.
writing of own wrapper eventsource way achieve desired functionality.
Comments
Post a Comment