Call logger correctly