User Tools

Site Tools


wiki:development:debugging

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 [2013/03/08 17:10]
sunweaver [Logging in X2Go Session Broker's Python Module]
Line 80: Line 80:
  
  
 +==== Logging in X2Go Session Broker's Python Module ====
 +
 +Whereever you want to write a line to ''/var/log/x2gobroker/broker.log'' from one of the python-x2gobroker module files, place this command:
 +
 +<code>
 +# at the top of the module file:
 +from x2gobroker.loggers import logger_broker
 +# [...] then further below, wherever needed:
 +logger_broker.debug('<your message>')
 +</code>
  
  
wiki/development/debugging.txt ยท Last modified: 2018/03/15 11:40 by ionic