CakePHP-DatabaseLogger-Plugin icon indicating copy to clipboard operation
CakePHP-DatabaseLogger-Plugin copied to clipboard

sequential calls to log in application: only last one saved to logs database

Open gr0g opened this issue 12 years ago • 4 comments

e.g. I call:

$this->log('This is a detailed message logged to the database1','error'); $this->log('This is a detailed message logged to the database2','error'); $this->log('This is a detailed message logged to the database3','error');

and I only see 'This is a detailed message logged to the database3' in the logs database table.

Please confirm if this is the same case on your side;

Apart from that - love the plugin - thanks!

gr0g avatar Apr 01 '12 23:04 gr0g

That is because he forgot to include create() in the write method.

dereuromark avatar May 04 '13 09:05 dereuromark

We should probably include that in the log method. On May 4, 2013 5:04 AM, "Mark" [email protected] wrote:

That is because he forgot to include create() in the write method.

— Reply to this email directly or view it on GitHubhttps://github.com/webtechnick/CakePHP-DatabaseLogger-Plugin/issues/1#issuecomment-17430147 .

AudiologyHoldings avatar May 04 '13 16:05 AudiologyHoldings

I did apply some updates and fixes (this one in particular) in my branch at https://github.com/dereuromark/CakePHP-DatabaseLog

dereuromark avatar May 06 '13 09:05 dereuromark

Sorry - thought I was talking to another Mark (here, at work). GitHub email comment fail.

Do you want to issue a pull request?

zeroasterisk avatar May 06 '13 13:05 zeroasterisk