I know this is too late, but i hope that it may help someone else
What i did is after executing my main command and if it was a success i execute a script to check the log file size ...
This can be achieved using
&& execute_your_filzsize_limit_check_script_or_program
for exemple
command > logfile.txt && filesize_check.exe