xxxxxxxxxx
import logging
# Set up the logger
logging.basicConfig(level=logging.DEBUG)
# Log messages
logging.debug("Debug message")
logging.info("Info message")
logging.warning("Warning message")
logging.error("Error message")
logging.critical("Critical message")
xxxxxxxxxx
def log(x,base):
result = ln(x)/ln(base)
return result
def ln(x):
n = 100000.0
return n * ((x ** (1/n)) - 1)
print(log(2,4))
#code by fawlid
xxxxxxxxxx
curl_setopt($this->ch, CURLOPT_HTTPHEADER, $this->headers);
$curl_info = curl_getinfo($this->ch);
$response = curl_exec($this->ch);
// var_dump( $curl_info);
if (curl_errno($this->ch)) {
$error_msg = curl_error($this->ch);
// $this->Model_cron->logMessage('cURL Error: ' . $error_msg);
}
curl_close($this->ch);