prepare log interface