* @brief Logger module for ReasonableFramework */ if(!check_function_exists("write_visit_log")) { function write_visit_log() { $fw = false; $msg = ""; $event = get_network_event(); if(loadHelper("networktool")) { if(loadHelper("rsf.format")) { $msg = get_rsf_encoded($event); } else { $msg = json_encode(get_network_event()); } $fw = append_storage_file($data, array( "storage_type" => "logs", "filename" => "network.log", "chmod" => 0644, "nl" => "<", )); } return $fw; } } if(!check_function_exists("write_common_log")) { function write_common_log($msg) { return append_storage_file($msg, array( "storage_type" => "logs", "filename" => "common.log", "chmod" => 0644, "nl" => "<", )); } }