Check that logger is present before using it