blob: move logging helpers to blob.h