Logging to csv or some txt at fixed interval of cron rule

Yes, I was, because the tutorial used log4j.
Anyway, I finally copied someone’s working solution.
But it has more than I need: