April 28, 2016
8:20 a.m.
2016-04-28 10:13 GMT+02:00 Denis Kudriashov <dionisiydk@gmail.com>:
2016-04-27 20:50 GMT+02:00 stepharo <stepharo@free.fr>:
And you say let's replace this "log object context" information with first class entities "typed signals". It means that for any possible case when I want to put something in log I should create class for new signal. It's just not practical.
why? MySpecialLog ... emit
What I am talking about is that I don't want create MySpecialLog for any MySpecialDomainObject which I want to log.
Traits? Put you logging api in a Trait instead of Object and let your MySpecialDomainObject use this trait ?