Skip to main content

GitHub Codespaces logs

Overview of the logs used by GitHub Codespaces.

Information on GitHub Codespaces is output to various logs:

  • Codespace logs
  • Creation logs

Other logs are available if you are using GitHub Codespaces in VS Code or in your web browser. Click the tabs above for details.

Codespace logs

These logs contain detailed information about the codespace, the container, the session, and the VS Code environment. They are useful for diagnosing connection issues and other unexpected behavior. For example, the codespace freezes but the "Reload Windows" option unfreezes it for a few minutes, or you are randomly disconnected from the codespace but able to reconnect immediately.

Currently you can't use GitHub CLI to access these logs. To access them, open your codespace in VS Code or in a browser.

Creation logs

These logs contain information about the container, dev container, and their configuration. They are useful for debugging configuration and setup problems.

Note

To learn more about GitHub CLI, see About GitHub CLI.

To see the creation log use the gh codespace logs subcommand. After entering the command choose from the list of codespaces that's displayed.

gh codespace logs

For more information about this command, see the GitHub CLI manual.

If you want to share the log with support, you can save the output to a file:

gh codespace logs -c <CODESPACE-NAME> > /path/to/logs.txt

Further reading