UE_LOG not changing Logging level

Hi, I’m having some issues with displaying the logging function:

UE_LOG(LogOnline, Log, TEXT("Starting session %s on client"), *AbatronPlayerState->SessionName.ToString());

I’m trying to change the log level to “ALL” , but its not updating the log. I have tried the following in BaseEngine, DefaultEngine, Engine. ini files.

[/Script/Core.Log]
LogOnline=ALL

I have compiled the engine for “Debug Editor” (Github version 4.3)

I’m not sure what I’m missing to get the readout working. I don’t get anything spitting out except for errors & warnings. Any suggestions for getting the (VeryVerbose, All) working? thanks.

the 2 Logs I’m trying to run are declared in “OnlineSubsystem.h”

ONLINESUBSYSTEM_API DECLARE_LOG_CATEGORY_EXTERN(LogOnline, Display, All);

ONLINESUBSYSTEM_API DECLARE_LOG_CATEGORY_EXTERN(LogOnlineGame, Display, All);

Since this subsystem is a separate module, is there a separate file for *ini settings for me to modify?

–Thanks for any help

Currently, i’m just changing the .h file to have …(LogOnline, All, All) and recompile to do the logging.

I might be digging out the dead question, but I had the same problem and was able to solve it. Works on UE 4.5.0

Solution 1:

In the project directory in DefaultEngine.ini add line:

[Core.Log]
LogOnline=All
LogOnlineGame=All

Solution 2:

In project properties add to Command Arguments:

-logcmds="logonline all, logonlinegame all"

It seems that the Solution 2 has higher priority than Solution 1.
Both solutions will overwrite log levels from DECLARE_LOG_CATEGORY_EXTERN.

I hope it’ll helps.

1 Like