Inscripción Online
Hay 1 error :
- producto no disponible actualmente
« Volver
<< Volver a la lista de productos
/*Define los valores del nivel log*/
define("MYLOG_DEBUG",1);
define("MYLOG_INFO",2);
define("MYLOG_NOTICE",3);
define("MYLOG_WARNING",4);
define("MYLOG_ERROR",5);
define("MYLOG_FATAL",6);
class MyLog
{
var $file = "/var/www/vhosts/jornadascoaching.org/httpdocs/shop/log/shop.log";
function wLog($debugLevel, $strTxt)
{
$strTxt=date("Y-m-d H:i:s")." [".$debugLevel."] ".$strTxt;
$fp=fopen($this->file,"a+");
fwrite($fp,$strTxt."\n\r");
fclose($fp);
}
function debug($strTxt)
{
$this->wLog('DEBUG', $strTxt);
}
function info($strTxt)
{
$this->wLog('INFO', $strTxt);
}
function notice($strTxt)
{
$this->wLog('NOTICE', $strTxt);
}
function warning($strTxt)
{
$this->wLog('WARNING', $strTxt);
}
function error($strTxt)
{
$this->wLog('ERROR', $strTxt);
}
function fatal($strTxt)
{
$this->wLog('FATAL', $strTxt);
}
}
?>
Fatal error: Class 'MyLog' not found in /var/www/vhosts/jornadascoaching.org/httpdocs/shop/classes/Db.php on line 109