<?php
// Exit if accessed directly
if( ! defined( 'ABSPATH' ) ) exit;

define('WPPB_IN_CS_REST_LOG_VERBOSE', 1000);
define('WPPB_IN_CS_REST_LOG_WARNING', 500);
define('WPPB_IN_CS_REST_LOG_ERROR', 250);
define('WPPB_IN_CS_REST_LOG_NONE', 0);

class WPPB_IN_CS_REST_Log {
    var $_level;

    function __construct($level) {
        $this->_level = $level;
    }

    function log_message($message, $module, $level) {
        if($this->_level >= $level) {
            echo date('G:i:s').' - '.$module.': '.$message."<br />\n"; //phpcs:ignore
        }
    }
}