Logs - WaZeR-Adrien/Lightwork-api GitHub Wiki
How to add event in logs ?
You must create an instance of the Logs class and use the save() method :
// Create new log
$log = new Log($code, $key, $date, $status, $method, $endpoint, $ip);
// Save in logs
$log->save();
How to get logs ?
public static function getAll()
: get all logspublic static function getByMethod()
: get logs by methodpublic static function getByDate()
: get logs by datepublic static function getByMethodAndDate()
: get logs by method and by date