Fixing Logger function parameters being invoked