From e5c802a3a672021805e17065add2c7622f33e651 Mon Sep 17 00:00:00 2001 From: Nigel Vickers Date: Tue, 21 Jul 2009 11:23:58 +0000 Subject: [PATCH] Added logging --- addressbook/inc/class.addressbook_vcal.inc.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/addressbook/inc/class.addressbook_vcal.inc.php b/addressbook/inc/class.addressbook_vcal.inc.php index f5fb8d6383..a8b52311b5 100644 --- a/addressbook/inc/class.addressbook_vcal.inc.php +++ b/addressbook/inc/class.addressbook_vcal.inc.php @@ -45,7 +45,13 @@ class addressbook_vcal extends addressbook_bo * @var array */ var $clientProperties; - + /** + * Set Logging + * + * @var string + */ + var $log = 0; + var $logfile="/tmp/log-addressbook"; /** * Constructor * @@ -56,7 +62,8 @@ class addressbook_vcal extends addressbook_bo function __construct($contact_app='addressbook', $_contentType='text/x-vcard', &$_clientProperties = array()) { parent::__construct($contact_app); - #Horde::logMessage("vCalAddressbook Constructor for $_contentType", __FILE__, __LINE__, PEAR_LOG_DEBUG); + if($this->log)$this->logfile = $GLOBALS['egw_info']['server']['temp_dir']."/log-addressbook"; + if($this->log)error_log(__LINE__.__METHOD__.__FILE__.array2string($_contentType)."\n",3,$this->logfile); switch($_contentType) { case 'text/vcard':