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

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -