Fix "this" in logger module replaced with variable