-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Debug System
akallabeth edited this page Dec 17, 2018
·
10 revisions
FreeRDP relies on the debug primitives provided by WinPR
It consists of
- A logging system (defined in
winpr/include/winpr/wlog.h) - A backtrace system (defined in
winpr/include/winpr/debug.h)
- The logger
WLogis capable of supporting various backends (stdout, files, sockets, ...) - Can be filtered:
- Global log level
- Different logging levels per
TAG
- Static and dynamic use
- Static for use where the message is not performance critical (A global tree is searched to finding the corresponding logger)
- Dynamic to speed things up (A reference to the logging configuration is held in memory)
- With the primitives in
winpr/include/winpr/debug.ha stack trace can be obtained (or logged toWLog) - Verbosity of these backtraces depends on compilation settings
- Debug symbols are required for human readable traces