due to the function invocation, using the shorthand of the logger instantiation causes this line to reported as not covered by tests.