Move setup of logger to seperate method. ...

...e do not have configuration available, resulting in optparse sys.exit'ing and nosetests becoming unhappy.