Interface

LogInterface

Magento\LoginAsCustomerLog\Api\Data\LogInterface

What it does

This interface defines the data structure for logging 'Login as Customer' events in Magento 2.

Developers use this to record and retrieve audit trail information when admin users log in as customers, capturing details like the admin user ID, username, customer ID, customer email, and timestamp of the event.

It's primarily used for security and compliance purposes to track admin impersonation activities.

Public Methods

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