log controller transferred to swift