*added log for create window and context