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 Initial Version and Version 1 of Logging


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

--

Legend:

Unmodified
Added
Removed
Modified
  • Logging

    v1 v1  
     1{{{#!div class="box"
     2= Logging =
     3
     4Sometimes 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]]
     6
     7Otherwise, 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}}}.
     8You can also prefix the {{{CATEGORY}}} with a dash "{{{-}}}" to disable debug logging for it. ie:
     9{{{
     10xpra start :10 -d all,-window
     11}}}
     12
     13[[BR]]
     14
     15Each 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.
     16Use: {{{XPRA_CATEGORY_DEBUG=1 xpra ...}}} to enable debug logging for your chosen {{{CATEGORY}}}.
     17
     18[[BR]]
     19It is also possible to enable and disable debug logging at runtime using:
     20{{{
     21xpra control :DISPLAY debug enable CATEGORY
     22}}}
     23and
     24{{{
     25xpra control :DISPLAY debug enable CATEGORY
     26}}}
     27And you can get the current list of debug loggers which:
     28{{{
     29xpra control :DISPLAY debug status
     30}}}
     31
     32}}}