diff --git a/content/copilot/troubleshooting-github-copilot/viewing-logs-for-github-copilot-in-your-environment.md b/content/copilot/troubleshooting-github-copilot/viewing-logs-for-github-copilot-in-your-environment.md index a9e1a78a2fa3..879096844d40 100644 --- a/content/copilot/troubleshooting-github-copilot/viewing-logs-for-github-copilot-in-your-environment.md +++ b/content/copilot/troubleshooting-github-copilot/viewing-logs-for-github-copilot-in-your-environment.md @@ -157,3 +157,23 @@ To check if GitHub Copilot is operational, run the following command in Vim/Neov :Copilot status {% endvimneovim %} + +{% xcode %} + +## Collecting log files + +The log files for the {% data variables.product.prodname_copilot %} extension for Xcode are stored in `~/Library/Logs/GitHubCopilot/`. The most recent file is named `github-copilot-for-xcode.log`. + +1. Open the {% data variables.product.prodname_copilot %} extension application. +1. At the top of the application window, click **Advanced**. +1. In the "Logging" section, click **Open Copilot Log Folder**. + +## Enabling verbose logs + +You can enable verbose logging to help troubleshoot issues with the {% data variables.product.prodname_copilot %} extension for Xcode. + +1. Open the {% data variables.product.prodname_copilot %} extension application. +1. At the top of the application window, click **Advanced**. +1. In the "Logging" section, next to "Verbose Logging", toggle the switch to the right. + +{% endxcode %}