Model

Log

Magento\LoginAsCustomerLog\Model\Log

What it does

This model class represents a log entry for tracking when admin users log in as customers in Magento 2.

Developers use this class to store and retrieve audit information including the admin user ID, username, target customer ID, customer email, and timestamp whenever the 'Login as Customer' feature is used.

Public Methods

  • setLogId()
  • getLogId()
  • setTime()
  • getTime()
  • setUserId()
  • getUserId()
  • setUserName()
  • getUserName()
  • setCustomerId()
  • getCustomerId()
  • setCustomerEmail()
  • getCustomerEmail()
  • setExtensionAttributes()
  • getExtensionAttributes()