Update logger.php
This commit is contained in:
parent
a8b8633126
commit
e031244899
|
|
@ -11,10 +11,9 @@ if(!check_function_exists("write_visit_log")) {
|
||||||
$fw = false;
|
$fw = false;
|
||||||
if(loadHelper("networktool")) {
|
if(loadHelper("networktool")) {
|
||||||
$data = DOC_EOL . json_encode(get_network_event());
|
$data = DOC_EOL . json_encode(get_network_event());
|
||||||
$fw = write_storage_file($data, array(
|
$fw = append_storage_file($data, array(
|
||||||
"storage_type" => "logs",
|
"storage_type" => "logs",
|
||||||
"filename" => "network.log",
|
"filename" => "network.log",
|
||||||
"mode" => "a"
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -25,10 +24,9 @@ if(!check_function_exists("write_visit_log")) {
|
||||||
if(!check_function_exists("write_common_log")) {
|
if(!check_function_exists("write_common_log")) {
|
||||||
function write_common_log($msg) {
|
function write_common_log($msg) {
|
||||||
$msg = DOC_EOL . $msg;
|
$msg = DOC_EOL . $msg;
|
||||||
return write_storage_file($msg, array(
|
return append_storage_file($msg, array(
|
||||||
"storage_type" => "logs",
|
"storage_type" => "logs",
|
||||||
"filename" => "common.log",
|
"filename" => "common.log",
|
||||||
"mode" => "a"
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user