[fpc-devel] TCustomApplication.Log(?)

Michael Van Canneyt michael at freepascal.org
Wed Feb 17 09:57:30 CET 2010



On Wed, 17 Feb 2010, Michael Schnell wrote:

> On 02/17/2010 09:25 AM, Michael Van Canneyt wrote:
>>
>> I don't see a point in an event queue, since TCustomApplication is also
>> meant for non-event-driven (or queueing) applications;
>
> Of course. I only vote for a hook. If it is not used it's just a
> non-event-driven application (command line tool or nonpersistent CGI).
>
>> What's more event queues can take wildly different forms in terms of
>> implementation, so it's hard to create a catch-all hook for that.
>
> I do see this, and this is exactly why I think such a hook would be
> great (even if not that easily done). Having a standard type (class) for
> all events (similar to the exception type), would allow for a much more
> standardized management of the events. According to the topic of this
> thread a central logging of the events for debugging would be enabled,

Despite the name TEventLog, it has nothing to do with events. It's a logging
facility. I agree that the name is confusing, but it has historical roots.

Michael.



More information about the fpc-devel mailing list