Am 23.02.2014 um 13:32 schrieb Sven Van Caekenberghe <sven@stfx.eu>:
On 23 Feb 2014, at 12:23, Norbert Hartl <norbert@hartl.name> 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