Quick answer: An exported Godot 4 desktop game writes its log to user://logs/godot.log. By default that is %APPDATA%\Godot\app_userdata\<Project Name>\logs\ on Windows, ~/Library/Application Support/Godot/app_userdata/<Project Name>/logs/ on macOS and ~/.local/share/godot/app_userdata/<Project Name>/logs/ on Linux and native Steam Deck builds. Script errors, engine errors and the crash handler’s backtrace all go into that one file, and each launch renames the previous log with a timestamp, so after a restart the crash is in the newest dated file.
A player says your Godot game crashed and you ask for the log. They ask where it is, and the honest answer depends on the operating system, on two project settings, and on whether their Steam Deck is running your Linux build or your Windows build through Proton. This guide gives the Godot crash log location for every platform, the reasons the folder is sometimes not there, a message you can paste to a player, and how to read what they send back.
- The godot.log location on each platform
- Why the logs folder is missing
- Which file has the crash: godot.log or a dated one
- What to send a player
- Add an “Open log folder” button
- How to read the log
- Steam Deck: two possible locations
- Android, iOS and web
- Watching the output live
- What is in the log, from the player’s point of view
- Getting the same information without asking
- Related guides
- Frequently asked questions
The godot.log location on each platform
Godot writes its log inside the project’s user data folder, the same place user:// points to. The folder name comes from Project Settings > Application > Config > Name.
| Platform | Default log path |
|---|---|
| Windows | %APPDATA%\Godot\app_userdata\<Project Name>\logs\godot.log |
| macOS | ~/Library/Application Support/Godot/app_userdata/<Project Name>/logs/godot.log |
| Linux | ~/.local/share/godot/app_userdata/<Project Name>/logs/godot.log |
| Steam Deck, native Linux build | Same as Linux. The home folder is /home/deck. |
| Steam Deck, Windows build through Proton | ~/.local/share/Steam/steamapps/compatdata/<appid>/pfx/drive_c/users/steamuser/AppData/Roaming/Godot/app_userdata/<Project Name>/logs/godot.log |
| Android, iOS | No file by default. Read the device log instead. |
| Web | No file. Output goes to the browser console. |
Three details change those paths:
- Custom user directory. If
application/config/use_custom_user_diris on, theGodot\app_userdatapart disappears. Withcustom_user_dir_nameset toMyStudio/MyGamethe Windows log is%APPDATA%\MyStudio\MyGame\logs\godot.log, and the macOS and Linux paths change the same way. - Custom log path.
debug/file_logging/log_pathdefaults touser://logs/godot.log. If someone on the team changed it, the file is wherever that setting says. - Linux data directory. Godot follows
XDG_DATA_HOME, so a game launched from the Flatpak version of Steam writes under~/.var/app/com.valvesoftware.Steam/instead of directly under~/.local/share.
If you are not sure what a build does, print it once at startup with print(OS.get_user_data_dir()), or check on your own machine with Project > Open User Data Folder in the editor. An editor run and an exported build of the same project use the same folder.
Why the logs folder is missing
File logging is controlled by debug/file_logging/enable_file_logging (Project Settings > Debug > File Logging, with Advanced Settings switched on). The base setting is off, and a .pc override turns it on for desktop platforms. The result is that Windows, macOS and Linux exports log to a file out of the box, and Android, iOS and web exports do not.
When a desktop player has no logs folder, the usual causes are:
- The setting or its
.pcoverride was turned off in the project. - The game never got far enough to create it. A missing
.pck, a missing DLL or a blocked executable fails before the engine starts logging. - The player is looking in
AppData\Localinstead ofAppData\Roaming. Typing%APPDATA%into the Explorer address bar avoids that. - The project uses a custom user directory, so there is no
Godotfolder to find.
Which file has the crash: godot.log or a dated one
Godot starts a new godot.log on every launch. The previous one is renamed with the date and time, for example godot2026-11-28T10.15.00.log, and debug/file_logging/max_log_files (5 by default) decides how many are kept before the oldest is deleted.
This matters more than anything else in this article. A player almost always restarts the game before writing to you, so godot.log now describes the healthy session they are in, and the crash is in the newest dated file. After five more launches it is gone. Ask for every file in the folder and ask soon.
What to send a player
Fill in your project name and paste this. It is written for Windows; swap in the macOS or Linux path from the table for other players.
Thanks for the report. To see what went wrong I need the game's log files.
1. Press the Windows key + R, paste this line and press Enter:
%APPDATA%\Godot\app_userdata\My Game\logs
2. A folder opens with godot.log and a few files that have a date in
their name. Please attach all of them to your reply. They are small
text files.
3. If you can, tell me roughly what time the crash happened.
The logs contain engine messages and the name of your graphics card.
They do not contain your files or passwords. You can open them in
Notepad first if you want to check.
On macOS the equivalent step is Finder > Go > Go to Folder, then pasting the ~/Library/Application Support/... path. The Library folder is hidden, so browsing to it by clicking does not work.
Add an “Open log folder” button
You can remove the path from the conversation entirely. A button in the options menu that opens the folder works on every desktop platform and survives any change to the user directory settings:
func _on_open_logs_pressed() -> void:
var dir := ProjectSettings.globalize_path("user://logs")
OS.shell_show_in_file_manager(dir)
If you would rather have the text than the file, a second button can copy the current log to the clipboard so the player can paste it into Discord or an email:
func _on_copy_log_pressed() -> void:
var text := FileAccess.get_file_as_string("user://logs/godot.log")
DisplayServer.clipboard_set(text)
That only helps for problems the player can still reach the menu for. After a crash the interesting file is the dated one, so the folder button is the more useful of the two.
How to read the log
The first lines name the engine version, the rendering backend and the GPU the game picked. Check those before anything else: a laptop that chose its integrated GPU, or a fallback from Vulkan to OpenGL, explains many reports on its own.
After that, search for these prefixes:
SCRIPT ERROR: Invalid access to property or key 'health' on a base object of type 'Nil'.
at: _physics_process (res://player/player.gdc:42)
ERROR: Condition "!is_inside_tree()" is true. Returning: Transform3D()
at: get_global_transform (scene/3d/node_3d.cpp:343)
USER ERROR: Save file version 7 is newer than this build understands
at: push_error (core/variant/variant_utility.cpp:1098)
SCRIPT ERROR:is a GDScript runtime error. Theat:line gives the function, script and line. In an exported game the function stops at that line and the game keeps running in whatever state that leaves, which is why a script error in the log often sits minutes before the symptom the player noticed.ERROR:is the engine’s C++ code rejecting something. Theat:line points into engine source, so read the message and look at the script errors around it to find your side of the call.USER ERROR:andUSER WARNING:are your ownpush_error()andpush_warning()calls.
Release exports log script errors with the location but without a full call stack. From Godot 4.5 you can turn on Debug > Settings > GDScript > Always Track Call Stacks to get GDScript backtraces in release builds too. A debug export gives the fullest messages and is worth sending to a player who can reproduce a problem on demand.
The crash handler block
When the engine itself crashes, the crash handler writes a block to the same log file before the process dies. On Linux it looks like this, and the other desktop platforms print something similar:
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.5.stable.official (876b290332ec)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f3a1c242520] (??:0)
[2] ./MyGame.x86_64() [0x1a2b3c4] (??:0)
[3] ./MyGame.x86_64() [0x1a2c001] (??:0)
-- END OF BACKTRACE --
================================================================
Signal 11 is a segmentation fault. The frames are bare addresses with ??:0 because the official release export templates are stripped of debug symbols. That is normal, not a broken log. What you can still use is everything above the block: the last script that loaded, the last scene change, the last error. Frames that sit in a GPU driver library rather than in your executable point toward a driver problem. Getting function names for engine frames needs an export template built with debug symbols, which is only worth doing for a crash you see repeatedly.
If the log simply stops with no block and no error, the process was killed from outside (out of memory, the player closing it, an overlay or antivirus), or it failed before logging began.
Steam Deck: two possible locations
On a Steam Deck the path depends on which build ran. A native Linux export uses the Linux path under /home/deck. A Windows export running through Proton believes it is on Windows, so the log is inside that game’s Proton prefix under steamapps/compatdata/<appid>/pfx/drive_c/users/steamuser/AppData/Roaming/. Games installed on a microSD card keep the prefix on the card under /run/media/.
Both folders are only reachable from Desktop Mode with hidden files shown, which few players will do. The step-by-step version of that conversation is in how to get crash logs from a player on Steam Deck.
Android, iOS and web
On Android the user data folder is in the app’s private storage, which a normal phone will not let anyone browse, and file logging is off by default. Use the device log over USB instead:
adb logcat -s godot
That works for your own test devices. A player cannot reasonably do it. On iOS the same output appears in the Xcode device console. In a web export everything goes to the browser’s developer console (F12), and a player can copy it from there or send a screenshot.
Watching the output live
For a problem that happens at startup, before the log is useful, run the game from a terminal. On Windows the export preset has an Export Console Wrapper option, which by default produces a MyGame.console.exe next to debug exports. Running that file opens a console window with the engine’s output. On macOS and Linux run the binary from a terminal directly. Adding --verbose prints more detail about resource loading and driver setup, and recent 4.x versions accept --log-file <path> to write the log somewhere easy to find.
Godot 3 projects use the same app_userdata folders. The setting lives under Logging > File Logging there, so check that it is enabled in the project before you rely on it.
What is in the log, from the player’s point of view
The log contains the GPU name and driver API version, everything the engine reports, and everything your game prints. Absolute paths in error messages can include the player’s account name. It does not contain files from their machine. The practical rule is on your side: never print() an email address, a session token or a save file’s contents, because you will be asking players to post this file in public channels.
Getting the same information without asking
The Bugnet Godot SDK reads this same file so the player does not have to find it. While the game runs it follows user://logs/godot.log, and when an ERROR: or SCRIPT ERROR: line appears it files a report with the surrounding lines and up to the last 100 log lines. Every report, automatic or filed by the player from the in-game form, also carries the OS name and version, CPU and core count, GPU, RAM, screen resolution and the project’s version setting. Because it works from the log file, file logging has to stay enabled for automatic capture.
For reports a player files by hand you can attach the whole log by passing ["user://logs/godot.log"] as the attachments argument of report_bug(); the SDK docs show the full call. A hard engine crash still ends the process before anything can be sent, so the dated log file remains the place to look for those.
Related guides
- How to Collect Log Files From a Crashed Godot Game on Linux
- How to Fix a Godot Exported Game That Closes Instantly With No Error
- How to Capture Script Errors at Runtime in an Exported Godot 4 Game
- How to Fix Godot Crashes on Steam Deck
- Where Are Unity Crash Logs? Finding and Reading Them
Frequently asked questions
Where is godot.log on Windows?
In %APPDATA%\Godot\app_userdata\YourProjectName\logs\godot.log, where YourProjectName is the name set in Project Settings. If the project uses a custom user directory, the logs folder is directly under %APPDATA%\YourCustomName instead.
Why is there no logs folder for my exported Godot game?
File logging is only on by default for desktop exports. It is off on Android, iOS and the web, it can be switched off in Project Settings under Debug, File Logging, and a custom log path or custom user directory moves the folder somewhere else.
Which Godot log file contains the crash if the player restarted the game?
Not godot.log. Godot starts a fresh godot.log on every launch and renames the previous one with a date and time, so the crash is in the newest file that has a timestamp in its name.
Does an exported Godot game write a log file on Android?
Not by default. File logging is disabled on mobile and the app's private storage cannot be browsed on a normal phone, so read the output over USB with adb logcat -s godot instead.
How do I find the Godot user data folder from inside the game?
Call OS.get_user_data_dir() to get the absolute path of user://, or open the folder for the player with OS.shell_show_in_file_manager(ProjectSettings.globalize_path("user://logs")).
The log you need is rarely godot.log by the time the player answers. They restarted the game, so ask for the newest file with a date in its name.