Switch to couch_log
Change API to function per level