[horde] Re: LOG_DEBUG [Correction] ?

Frederic Trudeau ftrudeau at cam.org
Fri Aug 23 16:08:31 PDT 2002


Right.

When I try to log LOG_DEBUG level messages in SQL, I end up only with Login
success messages, that is piority 5 messages, which are notices I think.
However,  I get notices, info, errors and everything else if I use a file,
instead of SQL.

BTW, I had to hack in Log/sql.php class to get SQL loging work properlly, by
adding the dsn directly in the code :

    function Log_sql($log_name, $ident = '', $conf)
    {
        $this->table = $log_name;
        $this->ident = $ident;
        # $this->dsn = $conf['dsn'];
        $this->dsn = 'mysql://user:pass@host';
    }

Adding those params in horde.conf was also uncessfull :

$conf['log']['dsn'] = 'mysql://hordeuser:hordpass@host/log_table';

- or -

$conf['log']['params']['dsn'] =
'mysql://hordeuser:hordepass@host/log_table';

- or -

$conf['log']['name'] = 'log_table';
$conf['log']['params'] = array();
$conf['log']['params']['hostspec'] = 'host';
$conf['log']['params']['username'] = 'hordeuser';
$conf['log']['params']['password'] = 'hordepass';
$conf['log']['params']['database'] = 'horde';


Thanks for your help

---------------------------------------------------
Frederic Trudeau
PHP Coder, Colocation, Development
ftrudeau at cam.org
514.529.3000 ext. 246

----- Original Message -----
From: "Chuck Hagenbuch" <chuck at horde.org>
To: <horde at lists.horde.org>
Sent: Friday, August 23, 2002 6:46 PM
Subject: Re: [horde] Re: LOG_DEBUG [Correction] ?


> Quoting Frederic Trudeau <ftrudeau at cam.org>:
>
> > Works fine in a file, but not with SQL, which im using.
>
> You'll have to give more details than that...
>
> -chuck
>
> --
> Charles Hagenbuch, <chuck at horde.org>
> "After a few minutes the most aromatic and nice smelling Italian coffee
>  will come out of the exhaustpipe." - Our stove-top espresso pot
>
> --
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
>




More information about the horde mailing list