This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:development:debugging [2013/03/08 17:07] sunweaver [Logging in X2go Shell/Bash Scripts] |
wiki:development:debugging [2014/11/12 12:51] sunweaver [Debugging X2Go Session Broker] |
||
---|---|---|---|
Line 52: | Line 52: | ||
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 ==== | ||
Line 80: | Line 86: | ||
+ | ==== 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('< | ||
+ | </ | ||