core: daemonize.c: convert logs to new format