scanner: sort out scanner logging functions