MediaPress provides an easy to use logging API to allow plugin developers log and manipulate various MediaPress actions/events.

Table Schema:-

The table schema for the logging table is as shown below.



The table is named as ‘yourprefix_mpp_logs’ where yourprefix is the database prefix you are using. You can access the table name programatically using the following table

While logging, you should be careful to choose your action name and value field. Action name can not be longer than 16 characters and value can not be larger than 32 characters( In future, if we don’t see enough use case, we will convert value field to shortint orĀ int type).

PS: There is no database model class associated with this table. We have done it on purpose.

API Functions: –