[fpc-devel] TCustomApplication.Log(?)

Michael Schnell mschnell at lumino.de
Wed Feb 17 09:20:20 CET 2010


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.

In combination with the said logging functions, optionally enabling a
global log of the queue events and exception events would be really nice
to have !

-Michael



More information about the fpc-devel mailing list