logging controller