added logger getter code.