Fixed log (.log at the end) + fetch management to do
This commit is contained in:
parent
aa4d378e80
commit
70fd711003
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
php $(realpath $(dirname $0))/source/deploy.php;
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
php $(realpath $(dirname $0))/source/fetch.php;
|
|
@ -0,0 +1,21 @@
|
|||
<?php
|
||||
|
||||
require_once __DIR__.'/../../include/const';
|
||||
|
||||
function api_fetch(){
|
||||
|
||||
/* [1] Fetch & generate useful data from features
|
||||
=========================================================*/
|
||||
/* (1) Default data : access */
|
||||
$data = [
|
||||
'access' => file_get_contents(LOG_DIR.'/access.log')
|
||||
];
|
||||
|
||||
|
||||
}
|
||||
|
||||
echo api_fetch();
|
||||
|
||||
|
||||
|
||||
?>
|
|
@ -23,7 +23,7 @@
|
|||
=========================================================*/
|
||||
function slog($message="unknown error...", $feature="default", $flag="daemon"){
|
||||
|
||||
file_put_contents(LOG_DIR."/$flag", time()." [$feature] $message\n", FILE_APPEND);
|
||||
file_put_contents(LOG_DIR."/$flag.log", time()." [$feature] $message\n", FILE_APPEND);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue