diff options
author | Werner Lemberg <wl@gnu.org> | 2021-06-25 09:19:51 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2021-06-25 09:24:07 +0200 |
commit | ff40776591f215a05c0ed1bf49069090e5180578 (patch) | |
tree | 936c8c819d375e7585770f93875c5b603e1c96b1 /docs | |
parent | 1e0cef9e72aea5df787853e1952166807f4656fc (diff) | |
download | freetype2-ff40776591f215a05c0ed1bf49069090e5180578.tar.gz |
[base] Add trace level to logging output.
Some practical debugging work has shown that displaying level X of
an `FT_TRACEX` macro in the output of `FT2_DEBUG="... -v"` would be
very helpful to find out which trace level should be selected. As
an example, we now get output like
```
[ttobjs:2] TTF driver
[ttobjs:2] SFNT driver
[sfobjs:2] not a font using the SFNT container format
[t1objs:2] Type 1 driver
[stream:7] FT_Stream_EnterFrame: 14 bytes
```
* include/freetype/internal/ftdebug.h (FT_LOGGING_TAGX): New macro.
(FT_LOG): Use it to add the trace level to the logging tag.
* include/freetype/internal/fttrace.h (FT_MAX_TRACE_LEVEL_LENGTH):
Adjust.
* docs/DEBUG: Updated.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/DEBUG | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/DEBUG b/docs/DEBUG index 9a5fdc6a0..4f358779a 100644 --- a/docs/DEBUG +++ b/docs/DEBUG @@ -168,7 +168,7 @@ behaviour of FreeType at runtime. If `FT_DEBUG_LOGGING' is defined, two more options are available. * -v: Print also the name of FreeType's component from which the - current log is produced. + current log is produced, together with the tracing level. * -t: Print also the time. @@ -176,7 +176,7 @@ behaviour of FreeType at runtime. FT2_DEBUG="any:7 memory:5 -vt" - => [20:32:02:44969 ttload] table directory loaded + => [20:32:02:44969 ttload:2] table directory loaded FT2_DEBUG="any:7 memory:5 -t" @@ -184,7 +184,7 @@ behaviour of FreeType at runtime. FT2_DEBUG="any:7 memory:5 -v" - => [ttload] table directory loaded + => [ttload:2] table directory loaded FT_LOGGING_FILE |