<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.basic.php.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'book.errorfunc.php',
    1 => 'Error Handling',
    2 => 'Error Handling and Logging',
  ),
  'up' => 
  array (
    0 => 'refs.basic.php.php',
    1 => 'Вплив на поведінку PHP',
  ),
  'prev' => 
  array (
    0 => 'componere.cast_by_ref.php',
    1 => 'Componere\\cast_by_ref',
  ),
  'next' => 
  array (
    0 => 'errorfunc.setup.php',
    1 => 'Встановлення/налаштування',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/errorfunc/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.errorfunc.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.errorfunc" class="book">
 
 <h1 class="title">Error Handling and Logging</h1>
 

 <div id="intro.errorfunc" class="preface">
  <h1 class="title">Вступ</h1>
  <p class="para">
   These are functions dealing with error handling and logging. They
   allow you to define your own error handling rules, as well as modify
   the way the errors can be logged. This allows you to change and
   enhance error reporting to suit your needs.
  </p>
  <p class="para"> 
   With the logging functions, you can send messages directly to other
   machines, to an email (or email to pager gateway!), to system logs,
   etc., so you can selectively log and monitor the most important parts
   of your applications and websites.
  </p>
  <p class="para"> 
   The error reporting functions allow you to customize what level and
   kind of error feedback is given, ranging from simple notices to customized
   functions returned during errors. 
  </p>
 </div>

 




 

 




 





 









<ul class="chunklist chunklist_book"><li><a href="errorfunc.setup.php">Встановлення/налаштування</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="errorfunc.configuration.php">Налаштування під час виконання</a></li></ul></li><li><a href="errorfunc.constants.php">Попередньо визначені константи</a></li><li><a href="errorfunc.examples.php">Приклади</a></li><li><a href="ref.errorfunc.php">Функції Обробки Помилок</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.debug-backtrace.php">debug_backtrace</a> — Generates a backtrace</li><li><a href="function.debug-print-backtrace.php">debug_print_backtrace</a> — Prints a backtrace</li><li><a href="function.error-clear-last.php">error_clear_last</a> — Clear the most recent error</li><li><a href="function.error-get-last.php">error_get_last</a> — Get the last occurred error</li><li><a href="function.error-log.php">error_log</a> — Send an error message to the defined error handling routines</li><li><a href="function.error-reporting.php">error_reporting</a> — Sets which PHP errors are reported</li><li><a href="function.get-error-handler.php">get_error_handler</a> — Gets the user-defined error handler function</li><li><a href="function.get-exception-handler.php">get_exception_handler</a> — Gets the user-defined exception handler function</li><li><a href="function.restore-error-handler.php">restore_error_handler</a> — Restores the previous error handler function</li><li><a href="function.restore-exception-handler.php">restore_exception_handler</a> — Restores the previously defined exception handler function</li><li><a href="function.set-error-handler.php">set_error_handler</a> — Sets a user-defined error handler function</li><li><a href="function.set-exception-handler.php">set_exception_handler</a> — Sets a user-defined exception handler function</li><li><a href="function.trigger-error.php">trigger_error</a> — Generates a user-level error/warning/notice message</li><li><a href="function.user-error.php">user_error</a> — Псевдонім trigger_error</li></ul></li></ul></div><?php manual_footer($setup); ?>