개발 단계에서는 빌드된 스탠드얼론 플레이어, 타겟 디바이스, 패키지 관리자 또는 에디터의 로그에서 정보를 얻고 싶은 경우가 있을 수 있습니다. 로그 파일은 문제가 발생했을 때 문제가 발생한 위치를 정확히 파악하는 데 도움이 됩니다.
에디터의 콘솔 창에 기록된 모든 메시지, 경고 및 오류는 이 로그 파일에도 기록됩니다. Debug 클래스를 사용하면 고유한 메시지를 콘솔 및 로그 파일에 기록할 수 있습니다.
macOS에서는 Console.app 유틸리티를 통해 플레이어, 패키지 관리자 및 에디터 로그에 액세스할 수 있습니다.
Windows에서 패키지 관리자 및 에디터 로그는 기본적으로 Windows 탐색기의 숨겨진 폴더에 저장됩니다. 로그 위치를 찾는 자세한 방법은 아래를 참조하십시오.
패키지 관리자 로그를 보려면 Unity 로그 폴더로 이동하십시오.
운영체제 | 로그 파일 |
---|---|
Linux | ~/.config/unity3d/upm.log |
macOS | ~/Library/Logs/Unity/upm.log |
Windows | C:\Users\username\AppData\Local\Unity\Editor\upm.log |
macOS에서는 Console.app 유틸리티를 사용하여 ~/Library/Logs/Unity 폴더에 있는 로그를 찾을 수 있습니다.
Windows에서는 로컬 애플리케이션 데이터 폴더 <LOCALAPPDATA>\Unity\Editor\Editor.log
에서 에디터 로그 파일을 찾을 수 있습니다. 여기에서 CSIDL_LOCAL_APPDATA는 <LOCALAPPDATA>
를 정의합니다.
에디터 로그를 보려면 콘솔 창(메뉴: Window > General > Console)을 열고 콘솔 창 메뉴에서 Open Editor Log 를 선택합니다.
운영체제 | 로그 파일 |
---|---|
Linux | ~/.config/unity3d/Editor.log |
macOS | ~/Library/Logs/Unity/Editor.log |
Windows | C:\\Users\\username\\AppData\\Local\\Unity\\Editor\\Editor.log |
macOS에서는 Console.app 유틸리티를 사용하여 ~/Library/Logs/Unity 폴더에 있는 로그를 찾을 수 있습니다.
Windows에서는 로컬 애플리케이션 데이터 폴더 <LOCALAPPDATA>\Unity\Editor\Editor.log에서 에디터 로그 파일을 찾을 수 있습니다. 여기에서 CSIDL_LOCAL_APPDATA는 <LOCALAPPDATA>를 정의합니다.
운영체제 | 로그 파일 |
---|---|
Linux | ~/.config/unity3d/CompanyName/ProductName/Player.log |
macOS | ~/Library/Logs/Company Name/Product Name/Player.log |
Windows | C:\Users\username\AppData\LocalLow\CompanyName\ProductName\Player.log |
Windows 및 Linux 스탠드얼론에서는 로그 파일의 위치를 변경하거나, Unity의 로깅을 중단할 수 있습니다. 자세한 내용은 커맨드 라인 인자 문서를 참조하십시오.
XCode의 기기 로그는 GDB 콘솔 또는 오거나이저 콘솔을 통해 액세스할 수 있습니다. 후자는 애플리케이션이 XCode 디버거를 통해 실행하고 있지 않은 경우 충돌 로그를 검색하는 데 유용합니다.
크래시 및 문제 디버깅에 관한 내용은 문제 해결 및 크래시 버그 보고 문서를 참조하십시오.
로그캣 콘솔을 사용하여 기기 로그에 액세스할 수 있습니다. 그러려면 먼저 logcat
파라미터로 Android SDK/platform-tools 디렉토리에서 adb
애플리케이션을 실행하십시오.
$ adb logcat
패키지 관리자를 통해 Android 로그캣 패키지를 가져올 수도 있습니다. 이 패키지는 Android에서 로그를 가져오기 위한 UI 인터페이스를 제공합니다.
기기 | 로그 파일 |
---|---|
데스크톱 | %USERPROFILE%\\AppData\\Local\\Packages<productname>\\TempState\\UnityPlayer.log |
Windows Phone | Windows Phone Power Tools](https://wptools.codeplex.com/)을 사용하면 Windows Phone 로그를 검색해서 가져올 수 있습니다. 또한 Windows Phone IsoStoreSpy는 유용한 디버깅 툴을 많이 제공합니다. |
WebGL의 경우 Unity는 로그 출력을 브라우저의 JavaScript 콘솔에 작성합니다.
Windows Vista와 Windows 7에서는 Tools > Folder Options > View (tab)에서 AppData 폴더가 Windows 탐색기에서 보이게 할 수 있습니다. 툴 메뉴는 기본적으로 숨겨져 있습니다. 표시하려면 Alt 키를 한 번 누르십시오.
Windows 10에서는 View > Show/hide에서 Hidden items 옵션을 활성화하여 AppData 폴더가 Windows 탐색기에 표시되도록 만들 수 있습니다.
Windows에서는 기본적으로 스탠다드 아웃 스트림이 존재하지 않으므로, CI 시스템의 자식 프로세스의 경우처럼 유효하게 설정된 stdout
스트림으로 에디터를 실행해야 합니다. -
를 지정하여 출력을 stdout
으로 보내면 콘솔 창에 출력이 보이지 않습니다.
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?
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:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.