Log size and rolling?

duganj

New Member
Hello -- I am wondering if there is a way to limit the maximum size of a log file and roll it to a new file or just start over.
This is for the logs that reside in %appdata%\obs-studio\logs.
I know there is the setting for MaxLogs that can be set in the global.ini file.
Is there something similar for log size and rolling logs.

Thanks for the help,
Jeff Dugan
 

FerretBomb

Active Member
Each session where OBS is started and closed should generate its own log. Even with a 24-hour (or 48-hour) stream, the logfile should not exceed a megabyte without SEVERELY misbehaving plugins causing problems. As such logs are not modular; they are handled per-session.

Please note that OBS is not designed for unattended or automation use. It is meant to be a monitored livestream production tool, and so lacks niceties for the kind of constant uptime that automation needs.
 

duganj

New Member
Each session where OBS is started and closed should generate its own log. Even with a 24-hour (or 48-hour) stream, the logfile should not exceed a megabyte without SEVERELY misbehaving plugins causing problems. As such logs are not modular; they are handled per-session.

Please note that OBS is not designed for unattended or automation use. It is meant to be a monitored livestream production tool, and so lacks niceties for the kind of constant uptime that automation needs.
Ok Thanks for the response.
 

duganj

New Member
Each session where OBS is started and closed should generate its own log. Even with a 24-hour (or 48-hour) stream, the logfile should not exceed a megabyte without SEVERELY misbehaving plugins causing problems. As such logs are not modular; they are handled per-session.

Please note that OBS is not designed for unattended or automation use. It is meant to be a monitored livestream production tool, and so lacks niceties for the kind of constant uptime that automation needs.
Ok Thanks for thge response.
 

duganj

New Member
Is there a way to completely disable logging of the log file?
I set MaxLogs to 0 and that didn't appear to work.

Thanks,
Jeff
 

FerretBomb

Active Member
Not as far as I am aware. OBS deletes its oldest logs on startup, MaxLogs just determines how many to preserve at that check.
 

qhobbes

Active Member
Solution: Prevent user from writing to logs directory
Navigate to %appdata%/obs-studio
Right click on logs, Properties, Security, Edit..., Select user (in my case Admin), check box for Deny Write, Apply, Yes, OK, OK
 

duganj

New Member
Solution: Prevent user from writing to logs directory
Navigate to %appdata%/obs-studio
Right click on logs, Properties, Security, Edit..., Select user (in my case Admin), check box for Deny Write, Apply, Yes, OK, OK
Ok Sounds good. I'll give that a shot. Thanks!
 
Top