पीएचपी ओपनलॉग () फंक्शन
उदाहरण
सिस्टम लॉगर का खुला और बंद कनेक्शन:
<?php
function _log($text) {
openlog("phperrors", LOG_PID | LOG_PERROR);
syslog(LOG_ERR, $text);
closelog();
....
....
}
?>
परिभाषा और उपयोग
ओपनलॉग () फ़ंक्शन सिस्टम लॉगर के कनेक्शन को खोलता है।
वाक्य - विन्यास
openlog(ident, option, facility)
पैरामीटर मान
Parameter | Description |
---|---|
ident | Required. Specifies a string ident that is added to each message |
option | Required. Specifies what logging options will be used when generating a
log message. Can be one or more of the following options (separated with |):
|
facility | Required. Specifies what type of program is logging the message:
|
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | सफलता पर सत्य, असफलता पर असत्य |
---|---|
पीएचपी संस्करण: | 4.0+ |
पीएचपी नेटवर्क संदर्भ