set up and use logging in bin/xapers
use logging in database.py
use logging in sources/*py
use logging in cli/ui.py
use stdout, not stderr for interactive feedback