closes #3 - refactored logging to use new static log framework so that it doesn't need to be passed around.