Am 23.02.2014 um 13:47 schrieb Göran Krampe <[email protected]>: > On 02/23/2014 01:21 PM, Norbert Hartl wrote: >>> Am 23.02.2014 um 13:02 schrieb Göran Krampe <[email protected]>: >>> Further, regarding class behaviors or not - in SimpleLog an instance of >>> SLLog is the "log book". And you can have several if you like so the >>> logging behavior should IMHO definitely be on the instance side. >>> >>> BUT... we simply added a Defauly class var and mirrored the public >>> interface on the SLLog class side. Thus for most people, you just use the >>> class side behaviors. >>> >>> Not sure why Stephane didn't do something similar. >>> >> Hmm, I thought it is just like that. Log class side being just easy access >> instance creation methods > > Ok, my bad in that case - I was merely referring to another post here that > sounded like the class was the "log book" and the instance was the "log > entry". I may be wrong, I haven't had time to look at the code.
There are class side instance creations. An „emit“ on the instance side makes the log object emit through the log dispatcher where all the possible loggers are configured. Norbert
