finish and test logger