Flushing logs from app

I have a battery controller script which executes some control logic which is ca.150 lines of code executed by the self.run_daily callback.

My issue is that I cannot immediately see the logs from this script in the Log tab of the HomeAssistant AppDaemon page. Seems like AppDaemon is holding on to them instead of flushing them to the log file ( but that’s just my guess).
If I force a restart or shutdown, or even just redeploy i.e. do anything which would potentially flush the existing backlog then missing logs suddenly appear.
I log through self.log(msg).
I’m unfortunately not a pythonist hence don’t know what’s the normal way to go about flushing the logs to push them out in such case. Any suggestions ?