Write console log