From b6f27d9ec6579bba7998fa53aebe88fb0e79b54f Mon Sep 17 00:00:00 2001 From: eldy Date: Wed, 5 Oct 2011 22:41:08 +0200 Subject: [PATCH] New: Try a hidden feature to have log using firephp. --- htdocs/lib/functions.lib.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index e05aea66fe4..9438d318c57 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -483,6 +483,15 @@ function dol_syslog($message, $level=LOG_INFO) closelog(); } } + + // Check if log is to syslog (SYSLOG_FIREPHP_ON defined) + if (defined("SYSLOG_FIREPHP_ON") && constant("SYSLOG_FIREPHP_ON")) + { + require_once(SYSLOG_FIREPHP_PATH.'FirePHPCore/FirePHP.class.php'); + ob_start(); + $firephp = FirePHP::getInstance(true); + $firephp->log($message); + } } }