Changes between Version 1 and Version 2 of Logging
- Timestamp:
- 02/08/14 05:47:13 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Logging
v1 v2 3 3 4 4 Sometimes the problem is so obvious that you will simply get the error directly from the command line or in the server log file. 5 [[BR]] 5 }}} 6 7 {{{#!div class="box" 8 == Basics == 6 9 7 10 Otherwise, a good first step is to start xpra from the command line and add "{{{-d CATEGORY}}}" to it. The list of categories can be found with {{{xpra -d help}}}. … … 11 14 }}} 12 15 13 [[BR]] 16 }}} 14 17 15 Each category can also be enabled using environment variable, which can be useful if you cannot modify the command line, or if the logging should happen very early on, or if you aren't calling the code from its normal wrappers. 18 {{{#!div class="box" 19 == Environment Variables == 20 21 Each logging category can also be enabled using environment variable, which can be useful if you cannot modify the command line, or if the logging should happen very early on, or if you aren't calling the code from its normal wrappers. 16 22 Use: {{{XPRA_CATEGORY_DEBUG=1 xpra ...}}} to enable debug logging for your chosen {{{CATEGORY}}}. 23 24 }}} 25 26 {{{#!div class="box" 27 == Xpra control interface == 17 28 18 29 [[BR]] … … 31 42 32 43 }}} 44 45 {{{#!div class="box" 46 == Detailed Logging == 47 48 Some subsystems require special environment variables to enable logging, this is to minimize the cost of logging in performance critical paths. 49 50 For example: 51 * x11 event handling: 52 {{{ 53 XPRA_X11_DEBUG_EVENTS="*" xpra start :10 54 }}} 55 or 56 {{{ 57 XPRA_X11_DEBUG_EVENTS="EnterNotify,CreateNotify" xpra start :10 58 }}} 59 * {{{XShm}}} and {{{image}}} debugging code: 60 {{{ 61 XPRA_XSHM_DEBUG=1 xpra start :10 62 }}} 63 or 64 {{{ 65 XPRA_XIMAGE_DEBUG=1 xpra start :10 66 }}} 67 68 69 Please refer to the source code for details and more up to date information. 70 }}}