modern-events-calendar-lite/app/api/Campaign_Monitor/class/log.php

21 lines
637 B
PHP
Raw Normal View History

2024-10-15 12:04:03 +02:00
<?php
defined('CS_REST_LOG_VERBOSE') or define('CS_REST_LOG_VERBOSE', 1000);
defined('CS_REST_LOG_WARNING') or define('CS_REST_LOG_WARNING', 500);
defined('CS_REST_LOG_ERROR') or define('CS_REST_LOG_ERROR', 250);
defined('CS_REST_LOG_NONE') or define('CS_REST_LOG_NONE', 0);
if (!class_exists('CS_REST_Log')) {
class 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";
}
}
}
}