added logging.sh
refactored logging/config into scripts