Update and rename audit.php to logger.php

This commit is contained in:
Namhyeon Go 2018-05-27 02:30:56 +09:00 committed by GitHub
parent 7f28a46b8e
commit 40e85fcd0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View File

@ -1 +0,0 @@
// todo

19
system/logger.php Normal file
View 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",
));
}
}