log window api