DND register on_log callback