Added log function
This commit is contained in:
parent
c94b0360a0
commit
44123dff82
1 changed files with 9 additions and 0 deletions
|
|
@ -193,4 +193,13 @@ class Linux {
|
|||
|
||||
}
|
||||
|
||||
static public function json_log($message, $error=0, $status=0, $progress=0, $no_progress=0) {
|
||||
|
||||
$log=["error" => $error, "status" => $status, "progress" => $progress, "no_progress" => $no_progress, "message" => $message];
|
||||
|
||||
echo json_encode($log);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue