Skip to main content
By default, Sourcebot will output logs to the console in a human readable format. If you’d like Sourcebot to output structured JSON logs, set the following env vars:
  • SOURCEBOT_STRUCTURED_LOGGING_ENABLED (default: false): Controls whether logs are in a structured JSON format
  • SOURCEBOT_STRUCTURED_LOGGING_FILE: If structured logging is enabled and this env var is set, structured logs will be written to this file (ex. /data/sourcebot.log)

Structured log schema