|
From: | Florian HENRY |
Subject: | Re: [Dolibarr-dev] Move SQL logging to database handler |
Date: | Tue, 10 Jun 2014 15:09:20 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Hi,
I think it is a good idea, but the avantage of logging inside code is to speficy special remark into log file dol_syslog(get_class($this).'/'.pathinfo(__FILE__,PATHINFO_FILENAME).'::'.__FUNCTION__.' HereIPutTextThatICanFindInLogEasy sql='.$sql); Avantage to put it into SQL handler : all SQL query will be logged that is very good things. Disavantage, we do not know anymore what file/code part launch the request. Regards Florian Henry +33 6 03 76 48 07 address@hidden http://www.open-concept.pro Twitter : @_Open_Concept_Le 10/06/2014 13:59, Marcos García a écrit :
|
[Prev in Thread] | Current Thread | [Next in Thread] |