Logger can be provider as an external function