Unity는 에디터, 패키지 관리자, 라이선스 부여, 개발 플레이어, 허브의 로그 파일을 생성합니다. 이 로그 파일을 사용하여 애플리케이션에서 발생한 문제의 위치를 파악할 수 있습니다.
Unity는 콘솔 창의 모든 메시지, 경고, 오류를 로그 파일에 추가합니다. 콘솔 창과 로그에 자체 메시지를 추가하려면 디버그 클래스를 사용하십시오.
각 운영체제는 로그 파일을 서로 다른 위치에 저장합니다. 기본 위치는 이 페이지에 요약되어 있지만 특정 커맨드 라인 인자를 사용하여 Unity에서 로그 파일을 생성하는 시기와 위치를 제어할 수도 있습니다. 자세한 내용은 커맨드 라인 인자 문서를 참조하십시오.
참고:모든 플랫폼에서 이 기능이 지원되는 것은 아닙니다.자세한 내용은 플랫폼별 정보 문서를 참조하십시오.
콘솔 창에서 에디터 로그에 액세스할 수 있습니다. 이렇게 하려면 Console Window(메뉴: Window > General > Console)를 열고 Console Window 메뉴에서 Open Editor Log를 선택합니다.
운영체제의 파일 관리자 애플리케이션을 사용하여 다른 로그에 액세스할 수 있습니다.
로그 타입 | 로그 위치 |
---|---|
Editor | ~/.config/unity3d/Editor.log |
Package manager | ~/.config/unity3d/upm.log |
라이선스 부여 클라이언트 | ~/.config/unity3d/Unity/Unity.Licensing.Client.log |
라이런스 부여 감사 | ~/.config/unity3d/Unity/Unity.Entitlements.Audit.log |
macOS에서는 Console.app 유틸리티를 통해 Unity의 로그에 액세스할 수도 있습니다.
로그 타입 | 로그 위치 |
---|---|
Editor | ~/Library/Logs/Unity/Editor.log |
Package manager | ~/Library/Logs/Unity/upm.log |
라이선스 부여 클라이언트 | ~/Library/Logs/Unity/Unity.Licensing.Client.log |
라이런스 부여 감사 | ~/Library/Logs/Unity/Unity.Entitlements.Audit.log |
Windows에서 패키지 관리자와 에디터 로그는 기본적으로 Windows 탐색기의 숨겨진 폴더에 저장됩니다. AppData 폴더를 보려면 Windows에서 숨겨진 항목 설정을 활성화해야 합니다. 이 설정에 대한 자세한 내용은 Windows에서 숨김 파일 및 폴더 보기에 대한 Microsoft 문서를 참조하십시오.
Windows에서는 기본적으로 스탠다드 아웃 스트림이 존재하지 않으므로, CI 시스템의 자식 프로세스처럼 유효하게 설정된 stdout
스트림으로 에디터를 실행해야 합니다. -
를 지정하여 출력을 stdout
으로 보내면 콘솔 창에 출력이 보이지 않습니다.
로그 타입 | 로그 위치 |
---|---|
Editor | %LOCALAPPDATA%\Unity\Editor\Editor.log |
Package manager | 사용자 계정: %LOCALAPPDATA%\Unity\Editor\upm.log 시스템 계정: %ALLUSERSPROFILE%\Unity\Editor\upm.log
|
라이선스 부여 클라이언트 | %LOCALAPPDATA%\Unity\Unity.Licensing.Client.log |
라이런스 부여 감사 | %LOCALAPPDATA%\Unity\Unity.Entitlements.Audit.log |
Crash files |
%TMP%\CompanyName\ProductName\Crashes 참고: -crash-report-folder 커맨드 라인 인자로 폴더 위치 자리에 덮어쓸 수 있습니다. |
플레이어 로그를 보려면 Console Window(메뉴: Window > General > Console)를 열고 Console Window 메뉴에서 Open Player Log를 선택합니다. 또한 다음 폴더로 이동할 수도 있습니다.
운영체제 | 플레이어 로그 위치 |
---|---|
Android | Android 애플리케이션의 플레이어 로그에 액세스하려면 Android 로그캣을 사용합니다. 자세한 내용은 Android 로그 보기를 참조하십시오. |
iOS | GDB 콘솔을 사용하거나 XCode를 통해 오거나이저 콘솔을 사용하여 iOS 기기 로그에 액세스합니다. 기기 로그에 대한 자세한 내용은 Apple 문서를 참조하십시오. |
Linux | ~/.config/unity3d/CompanyName/ProductName/Player.log |
macOS |
~/Library/Logs/Company Name/Product Name/Player.log 참고: Console.app 유틸리티를 사용하여 로그 파일을 찾을 수도 있습니다. |
유니버설 Windows 플랫폼 | %USERPROFILE%\AppData\Local\Packages\<productname>\TempState\UnityPlayer.log |
WebGL | Unity는 로그 출력을 브라우저의 JavaScript 콘솔에 작성합니다. |
Windows | %USERPROFILE%\AppData\LocalLow\CompanyName\ProductName\Player.log |
운영체제의 파일 관리자 애플리케이션을 사용하여 허브 로그에 액세스할 수 있습니다. 또한 Unity Hub 내에서도 이러한 로그에 액세스할 수 있습니다. 자세한 내용은 허브 문서를 참조하십시오.
운영체제 | 플레이어 로그 위치 |
---|---|
Linux | ~/.config/UnityHub/logs/info-log.json |
macOS | ~/Library/Application\ Support/UnityHub/logs/info-log.json |
Windows | %UserProfile%\AppData\Roaming\UnityHub\logs\info-log.json |
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.