diff --git a/include/library/Crunchbutton/Log.php b/include/library/Crunchbutton/Log.php new file mode 100644 index 000000000..bb00687a4 --- /dev/null +++ b/include/library/Crunchbutton/Log.php @@ -0,0 +1,19 @@ +level = $func; + $log->data = json_encode($args); + $log->date = date('Y-m-d H:i:s'); + $log->save(); + } + + public function __construct($id = null) { + parent::__construct(); + $this + ->table('log') + ->idVar('id_log') + ->load($id); + } +} \ No newline at end of file