https://scumbumbomods.com/#/sims-log-enabler/
SIMS LOG ENABLER Updated by TURBODRIVER (3 Feb 2021) - DOWNLOAD -
This is a script mod which modifies the logging functions in The Sims 4 to enable the game log file features. I'm not sure why no one has ever enabled the logging features of the game, or if they have they haven't released a script for it. So I decided to write one up for myself and share it with all of you. This is probably most useful for script modders; however, there is a lot of information logged that can be useful for tuning modders as well.
This is a script mod, so to install it you should extract the Scumbumbo_SimsLogEnabler.ts4script file from the zip you downloaded into your Mods folder. It may be placed into a subfolder if desired, but it must not be more than one subfolder away from your Mods folder.
Don't forget that script mods must be enabled in your game options!
Additionally, to use an application for live view of the logs, extract the Sims Log Enabler UI.exe file from the zip you downloaded into the same folder as the Scumbumbo_SimsLogEnabler.ts4script file.
The actual log files will be placed into the folder with the Scumbumbo_SimsLogEnabler.ts4script file.
There is a HUGE amount of logging going on in the game and logging is enabled by default. There are two cheat console commands to enable and disable logging, but if you need logging disabled from the start there is a configuration variable (“ENABLE_LOGGING_AT_STARTUP”) that can be set for that in the sims_log_enabler.cfg file.
The two commands are:logs.enable (to enable logging) andlogs.disable (to disable logging)
Wow, almost too simple! There is one option that can be specified to the enable command. By default, when a log file is opened it will be overwritten because otherwise the log files can grow to huge sizes. Typically you will want this behavior. However, if you want to append to existing log files, you can specify the append flag on the enable command:logs.enable append
Log files aren't actually created or opened until they are used. There are many log groups used in the game, and each group will have it's own log file. Some of these logs are more useful than others, and some you'll probably never use.
Each of the log files can contain entries at the specific log levels INFO, DEBUG, WARN, and ERROR. The log level for each entry is noted at the start of the line in square brackets. Immediately following that you may see an optional "owner" tag in square brackets, this is just the user at EA who is responsible for the particular section of code that is producing that log info. Not very useful, but I included it for completeness.
There are eight configuration variables in the sims_log_enabler.cfg file which can be altered freely. Since these are processed when the game initially loads the mod they will only take effect when the game is restarted (so change them before starting the game).
ENABLE_LOGGING_AT_STARTUP A lot of information is logged at the game startup, for example when the XML tuning is loaded any errors or warnings found in the XML is logged.
To disable logging at startup, simply alter the ENABLE_LOGGING_AT_STARTUP entry as follows:
Code: