freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Logging Library-GSOC


From: Werner LEMBERG
Subject: Re: Logging Library-GSOC
Date: Wed, 20 May 2020 10:39:34 +0200 (CEST)

David wrote:

> I'm sorry but that doesn't make any sense to me.  There is
> absolutely no point in making part of FreeType depend on a specific
> external logger library at this point.  Also we don't even know
> which library, or which API.  This looks like a solution looking for
> a problem.
> 
> Also we don't necessarily send logs to stderr, e.g. there are
> already several versions of ftdebug.c, i.e. the one under
> builds/windows/ uses OutputDebugStringA(), or the one under
> builds/amiga/ uses KVPrintf(), etc..  All Werner wants is structured
> outputs, which can easily be done in the current code base with
> minimal refactor of the FT_TRACE macro implementations.

Mhmm, yes and no.  For example, if you want to have time stamps in the
logging output, too, you have to take care of the OS since you are
entering platform-specific behaviour.  It would be nice if this is
completely hidden.

> I recommend you start presenting how you plan modifying the current
> code base to achieve structured outputs (in very technical terms),
> then explain how one could hook FreeType to a *specific* logging
> library (e.g. with a runtime callback, or a configurable
> dependency).  And for each step, explain the benefits / drawbacks of
> the approach you're suggesting.

Armin, could you chime in and add your opinion?


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]