Advertisement
Guest User

Untitled

a guest
Dec 7th, 2022
729
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | Source Code | 0 0
  1. <?php
  2. if ( ! function_exists('log_message'))
  3. {
  4.     function log_message($level, $message, $php_error = FALSE)
  5.     {
  6.         if(empty($level)){
  7.             $level = 'error';
  8.         }
  9.  
  10.         static $_log;
  11.  
  12.         if (config_item('log_threshold') == 0)
  13.         {
  14.             return;
  15.         }
  16.  
  17.         $_log =& load_class('Log');
  18.         $_log->write_log($level, $message, $php_error);
  19.     }
  20. }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement