Skip to content
masterclass Buddy

Cypress · Method

cy.log

cy.log() prints a message and optional values in Cypress's Command Log. It is useful for marking test steps and inspecting values during a run.

Last updated

Since
0.18.3

Syntax

cy.log(message)
cy.log(message, args ...)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Cypress.log
  • cy.task()
  • .then()

Source: cy.log() | Cypress API Documentation. Checked 2026-11-03.