There might be times during development when you need to get information from the logs of the standalone player you’ve built, the target device, the Package Manager or the Editor. The log files are useful when you have experienced a problem, to find out exactly where the problem occurred.
On macOS, you can access the Player, Package Manager, and Editor logs through the Console.app utility.
On Windows, the Package Manager and Editor logs are placed in folders which are not shown in the Windows Explorer by default. See below for more information on where to find the logs.
To view the Package Manager log, navigate to the Unity log folder:
OS | Log files |
---|---|
macOS | ~/Library/Logs/Unity/upm.log |
Windows | C:\Users\username\AppData\Local\Unity\Editor\upm.log |
On macOS, you can also use the Console.app utility to find the log under the ~/Library/Logs/Unity folder.
On Windows, you can find the Editor log file in the local application data folder <LOCALAPPDATA>\Unity\Editor\Editor.log, where CSIDL_LOCAL_APPDATA defines <LOCALAPPDATA>.
To view the Editor log, open a Console Window (menu: Window > General > ConsoleAbbreviation of game console
See in Glossary) and select Open Editor Log from the Console window menu.
OS | Log files |
---|---|
macOS | ~/Library/Logs/Unity/Editor.log |
Windows | C:\Users\username\AppData\Local\Unity\Editor\Editor.log |
On macOS, you can also use the Console.app utility to find the log under the ~/Library/Logs/Unity folder.
On Windows, you can find the Editor log file in the local application data folder <LOCALAPPDATA>\Unity\Editor\Editor.log, where CSIDL_LOCAL_APPDATA defines <LOCALAPPDATA>.
OS | Log files |
---|---|
macOS | ~/Library/Logs/Company Name/Product Name/Player.log |
Windows | C:\Users\username\AppData\LocalLow\CompanyName\ProductName\Player.log |
Linux | ~/.config/unity3d/CompanyName/ProductName/Player.log |
On Windows and Linux standalones, you can change the location of the log file, or stop Unity from logging to it. For more information, see the Command line arguments documentation.
Access the device log in XCode via the GDB console or the Organizer Console. The latter is useful for getting crashlogs when your application is not running through the XCode debugger.
See the documentation on Troubleshooting and Reporting crash bugs for information about debugging crashes and issues.
Use the logcat console to access your device log. To use it, launch the adb
application in the Android SDK/platform-tools directory with the logcat
parameter:
$ adb logcat
You can also use the Dalvik Debug Monitor Server (DDMS) to access the logcat console. To launch DDMS, start it either from Eclipse or from inside Android SDK/tools. DDMS also provides a number of other debug-related tools.
Device | Log files |
---|---|
Desktop | %USERPROFILE%\AppData\Local\Packages<productname>\TempState\UnityPlayer.log |
Windows Phone | You can retrieve your Windows Phone log with Windows Phone Power Tools. The Windows Phone IsoStoreSpy also provides a number of helpful debugging tools. |
For WebGL, Unity writes the log output to your browser’s JavaScript console.
On Windows Vista and Windows 7, to make the AppData folder visible in Windows Explorer go to Tools > Folder Options > View (tab). The Tools menu is hidden by default. Press the Alt key once to display it.
On Windows 10, to make the AppData folder visible in Windows Explorer go to View > Show/hide and enable the Hidden items option.
On Windows, no standard out stream exists by default, so you must launch the Editor with a valid configured stdout
stream, like as a child process from a CI system. If you specify -
to send output to stdout
you won’t see the output in the console window.
2019–06–07 Page amended with limited editorial review
Tizen support discontinued in 2017.3 NewIn20173
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Is something described here not working as you expect it to? It might be a Known Issue. Please check with the Issue Tracker at issuetracker.unity3d.com.
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thanks for helping to make the Unity documentation better!