Properly use logging for the controller library.