I think of journaling as a log to debug myself and it has helped me out so well in finding out lot of physical health issues and mental states which I want to cultivate and avoid.
yes, exactly this. You can always read and re-think about the past and try to find better solutions for the future problems that has happened in the past.