icon 字幕
正在加载字幕...

Logs & Log Channels: Debug, Warning, and Error Messages in Verse Code and Unreal Editor

youtube 翻译 youtube 中文翻译 youtube 字幕 youtube 中文字幕 youtube 翻译成中文 youtube 视频翻译 youtube translate to chinese translate youtube to chinese youtube transcript to chinese translate youtube video to chinese

YouTube transcript, YouTube translate

32/32

A quick preview of the first subtitles so you know what the video covers.

hey how's it going and today I wanted to do a tutorial about log channels and I'm doing this because I'm seeing code around that refers to log channels but I haven't really found any documentation that talks about how to use them and where to find them so I thought I'd just put this together and share what I've learned so anyway I'm just in a blank Island template and what we're going to do is we're just going to create a new vers project here and I'll just call this hello world 33 and I already have the code written for this okay so here we go if you want to know more about the log channel it's actually falls within the temporary Diagnostics module and if you just come in here and type in logor Channel you should and press control you should go to it and you'll see it right here and it talks about it and you can try to here there is a log channel and we're creating a instance of it and you can call this class that you create anything that you want whatever you call it will appear in front of any message that you print out from here and the idea is that you know where this error is coming from then it helps you to kind of pinpoint problems in your code then down here in your device level a what's called a log type and we create we basically create a channel of the log type and you can call this again anything that you want and I'm just calling it logger because that seems to be a convention that a lot of people use but you could call this whatever that you want to call it wit hin this channel you can also set a default level and what was interesting to me to learn is that there's actually five levels I wasn't aware of this there's two two places where these messages will one is to the output log so and that is down here this tab here it'll print down here and then it'll also print to the log within your client your fortnite client if I hit tab I don't know if it's going to pop up or not but yes it does you'll see there's a log up here as well these messages will also print here so as you can see all of the messages will print here

设置

100%

翻译目标语言

🔊 音频播放
正在播放翻译音频