Update logger.php

This commit is contained in:
Namhyeon Go 2019-03-28 14:10:25 +09:00 committed by GitHub
parent a8b8633126
commit e031244899
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,10 +11,9 @@ if(!check_function_exists("write_visit_log")) {
$fw = false;
if(loadHelper("networktool")) {
$data = DOC_EOL . json_encode(get_network_event());
$fw = write_storage_file($data, array(
$fw = append_storage_file($data, array(
"storage_type" => "logs",
"filename" => "network.log",
"mode" => "a"
));
}
@ -25,10 +24,9 @@ if(!check_function_exists("write_visit_log")) {
if(!check_function_exists("write_common_log")) {
function write_common_log($msg) {
$msg = DOC_EOL . $msg;
return write_storage_file($msg, array(
return append_storage_file($msg, array(
"storage_type" => "logs",
"filename" => "common.log",
"mode" => "a"
));
}
}