Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/brizy-pro   php

Repository URL to install this package:

Version: 2.3.7 

<?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";
	        }
	    }
	}
}