当前位置: 首页 > 工具软件 > Just4Log > 使用案例 >

[UE4]log文件位置

欧阳智志
2023-12-01

 

游戏逻辑代码中用UE_LOG打印的信息,都存在 “工程名\Saved\Logs\”目录下,例如:

UE_LOG(LogTemp, Error, TEXT("Path is invalid:%s"), Path);

 

Locating Project Logs

https://wiki.unrealengine.com/Locating_Project_Logs

 

 

Editor Session Log

This log will be generated while running UE4Editor.exe or in a specific project. This file is almost always going to be included when needing a log.

Log NameWindows locationMac Location
UE4.log

UE4-backup-YYYY.DD.MM-HR.Mn.Sc.log

Engine\Saved\Logs\~/Library/Logs/Unreal Engine/Editor/
ProjectName.log

ProjectName-backup-YYYY.DD.MM-HR.Mn.Sc.log

ProjectName\Saved\Logs\~/Library/Logs/Unreal Engine/ProjectNameEditor/

Game Logs

This log will be generated while running a Cooked/Packaged Project (ProjectName.exe or ProjectName.app) Always include this if there is an issue with running the packaged game.

Log NameWindows locationMac Location
ProjectName.logWindowsNoEditor/ProjectName/Saved/Logs~/Library/Logs/ProjectName/

Build/Cook/Package Logs

These logs are generated any time you Build/Cook/Package a project. File >Package > Platform, Editor Launch On, UFE sessions.

Log NameWindows locationMac Location
Cook.txt

UAT_Log.txt

P4 - Engine\Programs\AutomationTool\Saved\Logs

Binary - C:\Users\UserName\AppData\Roaming\Unreal Engine\AutomationTool\Logs\

~/Library/Logs/Unreal Engine/LocalBuildLogs/

Crash Logs

These are the logs that created and uploaded to CrashReporter.

Log NameWindows locationMac Location
diagnostics.txt

minidump.dmp ProjectName.log

C:\Users\UserName\AppData\Local\Microsoft\Windows\WER\ReportQueue (Note: C:\Users\UserName\AppData is invisible, just type the path on the address bar) P4 - Engine/Saved/Crashes/CrashReport-ProjectName/

Binary: ~/Library/Application Support/Epic/Unreal Engine/4.X/Saved/Crashes/CrashReport-ProjectName/ (Note that /Users/yourusername/Library is invisible. Hold the alt-key and from the finder menu select Go->Library)

 

Compile Logs

Any time a compile fails in Visual Studio or Xcode, copy all of the Output and paste into a txt file. Often times we only copy the last few lines that say it failed, which really doesn’t give the information that devs need.

 

 

 类似资料: