common/log: move *_dump_log routines to common/log