Hello David,
Thanks for the response.
>What would be the actual benefits to using an external logging library really? The only thing I can think of is using structured debug messages (i.e. sending a (component, level, message) >tuple instead of a string to whatever receives the log messages, to allow better filtering). But we can easily refactor ftdebug.c to do that, with a default implementation that prints to stderr / , >and a debug-only API to inject a custom sink callback at runtime. Only then can we decide to optionally provide a sink that depends on a specific third-party library, as an option.
As far as I have understood the problem statement under this project @
https://www.freetype.org/gsoc.html is that the current logging capabilities of FreeType only print the logs on stderr and to scale the FreeType for multiple platforms where something similar to stderr don't exist, there is need to write the logs on files present on the file system. My queries were with respect to this use case.
I am sorry I am unable to fully understand your concern in this regard. Can you please provide more insight on this?
>Can you give one concrete example of an actual logging library that would be useful for FreeType developers for development purposes. Because I failed to find one.
Regarding the library's exploration, it is still in progress and will keep you posted on the same. Some time back I explored zlog library and it was meeting some of our requirements but it was never finalized. Would like to hear from you on this?
Also, if possible, can you please let me know which all libraries have already been explored and any documentation around this will help?
Initially, we did discussed to change the ftdebug.c to write the logs on file system rather than using an external library but later we concluded that the external library will be more beneficial since they have matured and well tested APIs.
>Do you plan to improve the debugging macros used by FreeType. If so, how exactly?
I am still in the exploration phase and will plan the changes according to the external library...
Thanks,
Priyesh