fix for nullref when getting logger from service