Am 23.02.2014 um 13:32 schrieb Sven Van Caekenberghe <[email protected]>:

> 
> On 23 Feb 2014, at 12:23, Norbert Hartl <[email protected]> wrote:
> 
>> One of the core ideas is „logging objects and not strings“.
> 
> I am missing a clear example of that though. I am wondering what the expect 
> interface is, how difficult/easy it is to fit in a new object as log (event).

The „message“ instVar in Log is supposed to be any object not just strings. So 
the easiest way to „log“ your object is

myObject asLog emit

What it does is to wrap a Log class around myObject being the message then. The 
creation of the Log class is dispatch through myObjects class so every business 
object can decide its own preferred log vehicle which can act as a bridge 
between special log objects and common log behavior. 

Does that answer your question?

Norbert


Reply via email to