On 07/10/2009 12:25 PM, Joachim Jaeckel wrote:
Ok, here I see, that an OutputHandler for you is the combination of (in
the case of my logging currently implemented) a formatter and an Output
(or Log-) Handler.
I think for me the OutputHandler is indeed the combination of your
LogHandler and a formatter, with the difference that Transcript, file,
etc. for me are all realized with the same kind of LogHandler; possibly
created with different class methods.
> So the code of the log-message output for each channel is like this:
>
> logHandler log: (formatter format: logEntry).
The problem with this is that in some cases the LogHandler might need
the severity and category, as is the case for syslog (and I expect
special handling of date/time in some cases might be desirable, for
example to put a limit on the number of messages per second).
> - Do you think, that this what currently is implemented as only a
> Dictionary should go into the former mentioned class-hierachy of
> objects?
It could be done entirely with a MultiplexOutputHandler that also takes
care about filtering unwanted severities, yes.
Paolo
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk