Add logger for several functions