Allow setting a different output
Added logger tests