added null logger if no logger is present