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

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -