xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Changes between Version 1 and Version 2 of Logging


Ignore:
Timestamp:
02/08/14 05:47:13 (7 years ago)
Author:
Antoine Martin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Logging

    v1 v2  
    33
    44Sometimes 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 ==
    69
    710Otherwise, 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}}}.
     
    1114}}}
    1215
    13 [[BR]]
     16}}}
    1417
    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
     21Each 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.
    1622Use: {{{XPRA_CATEGORY_DEBUG=1 xpra ...}}} to enable debug logging for your chosen {{{CATEGORY}}}.
     23
     24}}}
     25
     26{{{#!div class="box"
     27== Xpra control interface ==
    1728
    1829[[BR]]
     
    3142
    3243}}}
     44
     45{{{#!div class="box"
     46== Detailed Logging ==
     47
     48Some subsystems require special environment variables to enable logging, this is to minimize the cost of logging in performance critical paths.
     49
     50For example:
     51* x11 event handling:
     52{{{
     53XPRA_X11_DEBUG_EVENTS="*" xpra start :10
     54}}}
     55or
     56{{{
     57XPRA_X11_DEBUG_EVENTS="EnterNotify,CreateNotify" xpra start :10
     58}}}
     59* {{{XShm}}} and {{{image}}} debugging code:
     60{{{
     61XPRA_XSHM_DEBUG=1 xpra start :10
     62}}}
     63or
     64{{{
     65XPRA_XIMAGE_DEBUG=1 xpra start :10
     66}}}
     67
     68
     69Please refer to the source code for details and more up to date information.
     70}}}