$manager
$manager : \MainWP\Dashboard\Module\Log\manager
Log_Manager
Class Logs
__construct(\MainWP\Dashboard\Module\Log\Log_Manager $manager)
Log constructor.
Run each time the class is called.
\MainWP\Dashboard\Module\Log\Log_Manager | $manager | The main manager class. |
log(\MainWP\Dashboard\Module\Log\Connector $connector, string $message, array $args, integer $site_id, string $context, string $action, integer|null $state = null, integer $user_id = null) : boolean|\MainWP\Dashboard\Module\Log\WP_Error
Log handler.
\MainWP\Dashboard\Module\Log\Connector | $connector | Connector responsible for logging the event. |
string | $message | sprintf-ready error message string. |
array | $args | sprintf (and extra) arguments to use. |
integer | $site_id | Target site id. |
string | $context | Context of the event. |
string | $action | Action of the event. |
integer|null | $state | action status: null - N/A, 0 - failed, 1 - success. |
integer | $user_id | User responsible for the event. |
True if updated, otherwise false|WP_Error