Log in
Model

Log

Magento\Customer\Model\Log

What it does

This class serves as a data container (value object) for storing customer activity tracking information in Magento 2.

Developers use this class to retrieve and pass around customer login, logout, and visit timestamps throughout the system.

It's typically populated from the customer_log database table and used when displaying customer last activity information in admin panels or tracking user sessions.

Public Methods

  • getCustomerId()
  • getLastLoginAt()
  • getLastVisitAt()
  • getLastLogoutAt()