fix logging method to accept **kwargs