add ability to set the logger facility and level, add tests for created file, currently all tests seem to be messed up, need to look at this