Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Logging

Gopherbot logs can go to:

  • stdout
  • stderr
  • a log file such as robot.log
  • local development: stdout is usually fine unless the connector needs a clean terminal
  • terminal-style local interaction: let the connector move logs to robot.log when needed
  • production under systemd: plain logs to stdout/stderr are usually easiest to collect

Useful debug knobs

  • GOPHER_LOGLEVEL
  • GOPHER_LOGDEST
  • GOPHER_HTTP_DEBUG

Be careful with GOPHER_HTTP_DEBUG; it is for low-level troubleshooting and may expose sensitive request or response data.