Add time to logs (optionally).