Update logger.php

This commit is contained in:
Namhyeon Go 2018-09-30 06:14:51 +09:00 committed by GitHub
parent 09699efc25
commit 5ad54ba9ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,4 +20,14 @@ if(!function_exists("write_visit_log")) {
return $fw;
}
if(!function_exists("write_common_log")) {
function write_common_log($msg) {
$msg = "\r\n" . $msg;
return write_storage_file($msg, array(
"storage_type" => "logs",
"filename" => "common.log",
"mode" => "a",
));
}
}