log controller