This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
wiki:development:debugging [2013/03/08 17:06] sunweaver [Logging in X2Go Perl Scripts] |
wiki:development:debugging [2024/07/01 17:36] (current) uli42 [Debugging x2goclient on Windows] |
||
---|---|---|---|
Line 12: | Line 12: | ||
root@x2goserver: | root@x2goserver: | ||
</ | </ | ||
+ | |||
+ | Other logging locations apart from the system' | ||
+ | |||
+ | * X2Go Server: ''/ | ||
+ | * X2Go Client: stderr (use '' | ||
+ | * PyHoca-GUI: stderr (use '' | ||
+ | * Xsession itself: '' | ||
+ | * NX (server-side): | ||
+ | * NX (client-side): | ||
===== Enable Debug Output ===== | ===== Enable Debug Output ===== | ||
Line 52: | Line 61: | ||
The log files normally get written to ''/ | The log files normally get written to ''/ | ||
+ | You can also run | ||
+ | < | ||
+ | root@broker: | ||
+ | </ | ||
+ | |||
+ | as user '' | ||
==== Python X2Go / PyHoca Debugging ==== | ==== Python X2Go / PyHoca Debugging ==== | ||
- | The PyHoca clients both have a '' | + | The PyHoca clients both have a '' |
===== Customizing Debug Messages ===== | ===== Customizing Debug Messages ===== | ||
Line 64: | Line 79: | ||
==== Logging in X2Go Server' | ==== Logging in X2Go Server' | ||
- | Whereever you want to write a line to syslog from an X2Go Perl script, place this command: | + | Whereever you want to write a line to syslog from an X2Go Server' |
< | < | ||
Line 71: | Line 86: | ||
- | ==== Logging in X2go Shell/Bash Scripts ==== | + | ==== Logging in X2Go Server' |
Whereever you want to write a line to syslog from an X2Go Shell/Bash script, place this command: | Whereever you want to write a line to syslog from an X2Go Shell/Bash script, place this command: | ||
Line 80: | Line 95: | ||
+ | ==== Logging in X2Go Session Broker' | ||
+ | |||
+ | Whereever you want to write a line to ''/ | ||
+ | |||
+ | < | ||
+ | # at the top of the module file: | ||
+ | from x2gobroker.loggers import logger_broker | ||
+ | # [...] then further below, wherever needed: | ||
+ | logger_broker.debug('< | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Debugging x2goclient on Windows ==== | ||
+ | |||
+ | This is a bit tricky. You need to run the debug version of x2goclient in a cmd window. The debug version is part of the xgoclient installation package for Windows and is called '' | ||
+ | |||
+ | Run ''< | ||
+ | Run '' | ||
+ | <note important> |