2016-04-27 21:11 GMT+02:00 stepharo <steph...@free.fr>:

>
> There is one problem with this approach when we split preparation and
> emitting of log object. It will always produce garbage. If no logs will
> have interest in myDomainObject or #warning-level messages application will
> continue create log entries.
>
> Denis I do not get what you mean with the sentence above.


With SystemLogger we would write:

anObject asLog emit.


And your code will always create Log instance which would be useless
garbage when nobody interested in it (not logs want it).
Same with Beacon:

anObject asBeaconSignal log.


And especially it is problem when we log thisContext:

ContextStackSignal log

It will always extract full stack information although not logs will record
it.

I think it is important to address this issue: logging code should be not
expensive when nobody use logs.

Reply via email to