[fpc-devel] TCustomApplication.Log(?)

Michael Van Canneyt michael at freepascal.org
Wed Feb 17 09:25:52 CET 2010



On Wed, 17 Feb 2010, Michael Schnell wrote:

> On 02/16/2010 05:38 PM, Joost van der Sluis wrote:
>> And it is because I want to have a 'global' logging system available.
>> But the application
>> has to implement it.
>>
>
> Of course the logging functions would need to be thread-safe !
>
> IMHO it would be nice if TCustomapplication would have a hook for the
> event-queue, so that different event queue implementations (like
> TApplication <using the GUI system's event queue> and the (upcoming)
> TNoGUIApplication <implementing an event queue in FPC code> ) can be
> done as a plugin.

I don't see a point in an event queue, since TCustomApplication is also
meant for non-event-driven (or queueing) applications; 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.

Michael.



More information about the fpc-devel mailing list