enabling log hook