prepare logger