help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] Re: Logging facility for GNU-smalltalk


From: Paolo Bonzini
Subject: [Help-smalltalk] Re: Logging facility for GNU-smalltalk
Date: Fri, 10 Jul 2009 15:37:35 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]