Fixed more scoping issues with logger class.