[UE4]log文件位置

UE4游戏的各类日志文件分布在不同的目录下:Editor Session Log在运行UE4Editor时生成;Game Logs针对Cooked/Packaged项目,用于运行时问题排查;Build/Cook/Package Logs记录构建、烘烤和打包过程;Crash Logs记录崩溃信息;Compile Logs保存Visual Studio或Xcode的编译错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

游戏逻辑代码中用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.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值