Update and rename audit.php to logger.php
This commit is contained in:
parent
7f28a46b8e
commit
40e85fcd0c
|
|
@ -1 +0,0 @@
|
||||||
// todo
|
|
||||||
19
system/logger.php
Normal file
19
system/logger.php
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @file logger.php
|
||||||
|
* @date 2018-05-27
|
||||||
|
* @author Go Namhyeon <gnh1201@gmail.com>
|
||||||
|
* @brief Logger mobile for ReasonableFramework
|
||||||
|
*/
|
||||||
|
|
||||||
|
if(!function_exists("write_visit_log")) {
|
||||||
|
function write_visit_log() {
|
||||||
|
loadHelper("networktool");
|
||||||
|
$data = "\r\n" . json_encode(get_network_event());
|
||||||
|
return write_storage_file($data, array(
|
||||||
|
"stroage_type" => "logs",
|
||||||
|
"filename" => "vspf-" . date("Ymd"),
|
||||||
|
"mode" => "a",
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user