<?php


namespace ModulesGarden\ProxmoxAddon\App\Helper;


class Logger
{
    private $module;
    private $replaceVars = [];

    function __construct($module, $replaceVars = [])
    {
        $this->module      = $module;
        $this->replaceVars = $replaceVars;
    }

    /**
     * Log On Module Logs
     * @param string $action
     * @param string $requestString
     * @param string $responseData
     * @param array $processedData
     */
    public function log($action, $requestString, $responseData, $processedData)
    {
        logModuleCall($this->module, $action, $requestString, $responseData, $processedData, $this->replaceVars);
    }
}