本文整理汇总了PHP中Logging::ErrorLog方法的典型用法代码示例。如果您正苦于以下问题:PHP Logging::ErrorLog方法的具体用法?PHP Logging::ErrorLog怎么用?PHP Logging::ErrorLog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Logging
的用法示例。
在下文中一共展示了Logging::ErrorLog方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: handleError
function handleError($_errno, $_errstr, $_errfile, $_errline)
{
if (error_reporting() != 0) {
$estr = date("d.m.y H:i:s") . " " . $_SERVER["REMOTE_ADDR"] . " ERR# " . $_errno . " " . $_errstr . " " . $_errfile . " IN LINE " . $_errline . "\r\n";
Logging::ErrorLog($estr);
}
}
示例2: VisitorChat
if ($_POST[POST_EXTERN_SERVER_ACTION] == EXTERN_ACTION_MAIL) {
if (($ticket = $externalUser->SaveTicket(Encoding::Base64UrlDecode($_POST[POST_EXTERN_USER_GROUP]), $externalUser->GeoCountryISO2, isset($_POST["p_cmb"]), true, Communication::GetParameter("p_url", "", $nu, FILTER_SANITIZE_URL))) !== false && (Server::$Configuration->File["gl_scom"] != null || Server::$Configuration->File["gl_sgom"] != null)) {
$ticket->SendAutoresponder($externalUser, $externalUser->Browsers[0]);
}
} else {
if ($externalUser->Browsers[0]->Status != CHAT_STATUS_OPEN || $externalUser->Browsers[0]->Waiting) {
$externalUser->Browsers[0]->CloseChat(7);
$externalUser->Browsers[0] = new VisitorChat($externalUser->UserId, Encoding::Base64UrlDecode(@$_POST[POST_EXTERN_USER_BROWSERID]), $externalUser->Browsers[0]->UserData->Fullname, $externalUser->Browsers[0]->UserData->Email, $externalUser->Browsers[0]->UserData->Company, $externalUser->Browsers[0]->UserData->Text, $externalUser->Browsers[0]->UserData->Customs, $externalUser->Browsers[0]->DesiredChatGroup, $externalUser->Browsers[0]->DesiredChatPartner, $externalUser->Browsers[0]->UserData->Phone);
} else {
$externalUser->Browsers[0]->ChatId = Encoding::Base64UrlDecode(@$_POST[POST_EXTERN_CHAT_ID]);
}
$externalUser->Browsers[0]->Waiting = false;
$externalUser->Browsers[0]->WaitingMessageDisplayed = null;
if ($_POST[POST_EXTERN_SERVER_ACTION] == EXTERN_ACTION_RELOAD_GROUPS) {
if (!VisitorChat::IsChatBrowserIdAvailable($externalUser->Browsers[0]->BrowserId, true)) {
Logging::ErrorLog("Invalid Browser ID - trying to change ...");
$externalUser->AddFunctionCall("lz_chat_change_browser_id('" . getId(USER_ID_LENGTH) . "');", true);
$externalUser->AddFunctionCall("lz_chat_reload_groups();", false);
} else {
if (!$externalUser->Browsers[1]->LoadUserData()) {
$externalUser->Browsers[1]->UserData->LoadFromCookie();
}
$externalUser = $externalUser->Browsers[1]->ReplaceLoginDetails($externalUser);
$externalUser->ReloadGroups();
}
} else {
$externalUser->Browsers[0]->CloseWindow();
exit;
}
}
}