Windows: TF Object Detection API: configure logging /save console output to file

Hi,
I am currently trying to resolve another issue with training a modell, but at the moment i am stuck because i can not inspect the output.
I am using Powershell,
model_main_tf2.py --pipeline_config_path=training/ssd_efficientdet_d0_512x512_coco17_tpu-8.config --model_dir=training --alsologtostderr | Out-File -FilePath outfile.txt
not working
‘model_main_tf2.py --pipeline_config_path=training/ssd_efficientdet_d0_512x512_coco17_tpu-8.config --model_dir=training --alsologtostderr > outfile.txt’
the same.
The outfile.txt is created but it remains empty.

AFAIK the --alsologtosterr is only relevant for UNIX, but i also tried it without it.

Sorry for the noob question, but does anybody know how i can pipe the output to a file, or configure logging?

Thanks in advance
Konstantin