PHP code example of xcalegroup / baselib
1. Go to this page and download the library: Download xcalegroup/baselib library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
xcalegroup / baselib example snippets
class YouClass extends BaselibClass
{
public function Method1()
{
$this->trace->add(__FUNCTION__);
...
}
public function Method2()
{
$this->trace->add(__FUNCTION__);
try{
...
}
catch(Exception $e){
$this->log(Severity::ERROR,$e);
}
finally{
}
}
}
$_POST['key']!='') {
$key=$_POST['key'];
$app=$_POST['app'];
$severity=$_POST['severity'];
$errorcode=$_POST['errorcode'];
$error=$_POST['error'];
$stack_trace=$_POST['stack_trace'];
$user=$_POST['user'];
}