Use proper logging method.