(SOLVED) Log to file from binary output(Cooker)

Editor writes log into files at \Logs\Log_{datetime}.txt, but the game does not write log into files when game is cooked into standalone binary, even if the Configuration is Debug or Development.

It seems possible to manually write log into text file with implementing

private void OnDebugLog(LogType level, string msg, FlaxEngine.Object obj, string stackTrace)

but isn’t there some built in logging option for debug build, which I am missing now?

Cooked game writes logs into the appdata folder (on Windows) or other local application storage folder - depending on the platform (that’s because game folder might not have write access for the app).

More info: Platforms | Flax Documentation

1 Like

Thank you!