<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.network.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.openlog.php',
    1 => 'openlog',
    2 => 'Sistem g&uuml;nl&uuml;k&ccedil;&uuml;s&uuml;ne erişim i&ccedil;in bağlantı a&ccedil;ar',
  ),
  'up' => 
  array (
    0 => 'ref.network.php',
    1 => 'Ağ İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.net-get-interfaces.php',
    1 => 'net_get_interfaces',
  ),
  'next' => 
  array (
    0 => 'function.pfsockopen.php',
    1 => 'pfsockopen',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'reference/network/functions/openlog.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.openlog" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">openlog</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">openlog</span> &mdash; <span class="dc-title">Sistem günlükçüsüne erişim için bağlantı açar</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.openlog-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>openlog</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$önek</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$seçenek</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$oluşum</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>openlog()</strong></span> işlevi bir program için sistem günlükçüsüne
   bir bağlantı açar.
  </p>
  <p class="para">
   <span class="function"><strong>openlog()</strong></span> kullanımı isteğe bağlıdır.
   <code class="parameter">önek</code> bağımsız değişkeninin öntanımlı olarak <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>
   olduğu durumda, gerektiği takdirde işlev, <span class="function"><a href="function.syslog.php" class="function">syslog()</a></span>
   tarafından otomatik olarak çağrılacaktır.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.openlog-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">önek</code></dt>
     <dd>
      <p class="para">
       <code class="parameter">önek</code> dizgesi her iletiye eklenir.
      </p>
     </dd>
    
    
     <dt><code class="parameter">seçenek</code></dt>
     <dd>
      <p class="para">
       <code class="parameter">seçenek</code> bağımsız değişkeni, bir günlük iletisi
       üretilirken hangi günlük seçeneğinin kullanılacağını belirtmek için
       kullanılır.
       <table class="doctable table">
        <caption><strong><span class="function"><strong>openlog()</strong></span> seçenekleri</strong></caption>
        
         <thead>
          <tr>
           <th>Sabit</th>
           <th>Açıklama</th>
          </tr>

         </thead>

         <tbody class="tbody">
          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-cons">LOG_CONS</a></code></strong></td>
           <td>
            Veriyi sistem günlüğüne gönderirken bir hata oluşursa doğrudan
            sistem konsoluna yaz.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-ndelay">LOG_NDELAY</a></code></strong></td>
           <td>
            Günlük kayıtçısına hemen bir bağlantı aç.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-odelay">LOG_ODELAY</a></code></strong></td>
           <td>
            (öntanımlı) İlk ileti günlüğe kaydolana kadar bağlantı açılışını
            ertele.
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-perror">LOG_PERROR</a></code></strong></td>
           <td>Günlük iletisini ayrıca standart hataya da yaz.</td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-pid">LOG_PID</a></code></strong></td>
           <td>Her iletide PID&#039;i de içer</td>
          </tr>

         </tbody>
        
       </table>

       Bu seçeneklerin birden fazlasını belirtebilirsiniz. Çok sayıda seçenek
       belirtecekseniz bunları VEYAlamanız gerekir. Örneğin, hemen bir
       bağlantı aç, konsola yaz ve her iletiye PID&#039;i dahil et demek için şunu
       kullanın: <code class="literal">LOG_CONS | LOG_NDELAY | LOG_PID</code>
      </p>
     </dd>
    
    
     <dt><code class="parameter">oluşum</code></dt>
     <dd>
      <p class="para">
       <code class="parameter">oluşum</code> bağımsız değişkeni, iletiyi günlüğe kaydedecek
       program türünü belirtmek için kullanılır. Bu sayede farklı
       oluşumlardan gelen iletilerin nasıl ele alınacağını (sisteminizin
       syslog yapılandırmasında) belirtebilirsiniz.
       <table class="doctable table">
        <caption><strong><span class="function"><strong>openlog()</strong></span> oluşumları</strong></caption>
        
         <thead>
          <tr>
           <th>Sabit</th>
           <th>Açıklama</th>
          </tr>

         </thead>

         <tbody class="tbody">
          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-auth">LOG_AUTH</a></code></strong></td>
           <td>
            Güvenlik/kimlik doğrulama iletileri (bu sabitin tanımlı olduğu
            sistemlerde yerine <strong><code><a href="network.constants.php#constant.log-authpriv">LOG_AUTHPRIV</a></code></strong> kulanın).
           </td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-authpriv">LOG_AUTHPRIV</a></code></strong></td>
           <td>Güvenlik/kimlik doğrulama iletileri (özel)</td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-cron">LOG_CRON</a></code></strong></td>
           <td>Zamanlama süreçleri (cron ve at)</td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-daemon">LOG_DAEMON</a></code></strong></td>
           <td>Diğer sistem süreçleri</td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-kern">LOG_KERN</a></code></strong></td>
           <td>Sistem çekirdeği iletileri</td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-local0">LOG_LOCAL0</a></code></strong> ...
           <strong><code><a href="network.constants.php#constant.log-local7">LOG_LOCAL7</a></code></strong></td>
           <td>Yerel kullanım için ayrılmıştır. Bunlar Windows&#039;ta
           hükümsüzdür.</td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-lpr">LOG_LPR</a></code></strong></td>
           <td>Satır yazıcı alt sistemi</td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-mail">LOG_MAIL</a></code></strong></td>
           <td>eposta alt sistemi</td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-news">LOG_NEWS</a></code></strong></td>
           <td>USENET haber grupları alt sistemi</td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-syslog">LOG_SYSLOG</a></code></strong></td>
           <td>dahili olarak syslogd tarafından üretilen iletiler</td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-user">LOG_USER</a></code></strong></td>
           <td>soysal kullanıcı seviyesi iletiler</td>
          </tr>

          <tr>
           <td><strong><code><a href="network.constants.php#constant.log-uucp">LOG_UUCP</a></code></strong></td>
           <td>UUCP alt sistemi</td>
          </tr>

         </tbody>
        
       </table>

      </p>
      <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
       <p class="para">
        <strong><code><a href="network.constants.php#constant.log-user">LOG_USER</a></code></strong> sadece Windows işletim sistemlerinde
        geçerli bir günlük türüdür.
       </p>
      </p></blockquote>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.openlog-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Daima <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> döndürür.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.openlog-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Sürüm: </th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.2.0</td>
      <td>
       İşlev artık daima <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> döndürüyor. Evvelce başarısızlık durumunda
       <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> dönerdi.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.openlog-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.syslog.php" class="function" rel="rdfs-seeAlso">syslog()</a> - Bir sistem g&uuml;nl&uuml;ğ&uuml; iletisi &uuml;retir</span></li>
    <li><span class="function"><a href="function.closelog.php" class="function" rel="rdfs-seeAlso">closelog()</a> - Sistem g&uuml;nl&uuml;k&ccedil;&uuml;s&uuml; bağlantısını kapatır</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>