use a system-wide logger

using a system-wide logger instead of passing the logger object around, which gets messy over time.