Hi Werner,
> Well, you say 'most'. Is this, say, 70% or 90% suitability in your
> opinion? If it's the former, how much additional code must be added
> to fit the needs? There might be a point that you have to add so much
> code that it might be easier to avoid the library altogether.
According to me the requirements from the external library were:
1. Write logs to file (with support on different platforms including Windows).
2. Formatting of log messages according to user needs (toggle-able: timestamps and FT_COMPONENT values)
These requirements are completely satisfied by dlg, and we only have to call the respective APIs given by dlg with some tweaks in FreeType to avail these features...
Other than the above requirements there was a requirement to dynamically change log levels and change the output mode through the use of callback functions.
For this requirement, we have to add code irrespective of whether we use an external library or we develop a logger inside FreeType.
Therefore, according to me if you are concerned about the additional code that we need to add along with using dlg, it would be much less than the code if we develop a logger inside FreeType with all of the above the requirements and support on different platforms.
I would try to document all the dlg's features that I am going to use along with how I am going to use them in week 4 and week 5 progress reports
And that would be my plan on how I am going to integrate dlg with FreeType (obviously changeable according to the suggestions) :-)
Please guide me...
Thanks,
Priyesh