While its not possible to get the exact same log file as output.xml, robot does have "Listener Interface" that is intended for this exact usecase.
See documentation @ https://docs.robotframework.org/docs/extending_robot_framework/listeners_prerun_api/listeners