You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Frank Corso edited this page Aug 6, 2020
·
1 revision
Using Popup Maker's logging system, you can quickly add log new messages to the debug log to be viewed within the plugin or by reviewing the log file.
Log Messages
To log any message, use the log method of the logging system:
PUM_Utils_Logging::instance()->log( 'Some random error message.' );
Log A Message Only Once
To log any message only one time, use the log_unique method:
PUM_Utils_Logging::instance()->log_unique( 'This error will only appear once in the logs.' );
Log A Deprecation Notice
To log a deprecation notice, use the log_deprecated_notice method. This method takes the name of the function, the version it was deprecated, and an optional replacement.