Use print_logs instead of fprintf when possible

4 jobs for add_log_level in 2 minutes and 1 second
latest
Status Job ID Name Coverage
  Build
passed #355673
amd64 debian
build-debian

00:00:41

passed #355674
macos
build-macos

00:00:51

passed #355676
win32 amd64 debian
build-win32

00:01:50

passed #355675
win64 amd64 debian
build-win64

00:02:01