CakePHP-DatabaseLogger-Plugin
CakePHP-DatabaseLogger-Plugin copied to clipboard
Simple CakePHP Database Logger Replacement
are you still maintaining or interested in turning the main repo over to me? See https://github.com/dereuromark/CakePHP-DatabaseLog for current development.
I added the ability to track user ID of the users that generate the logs. Imagine you are offering support for a system that has many entries in the error...
Am getting issue due to using multiple data sources for db connections. I have separate databases for each account registered. You plugin working well with default connection but when another...
PHP >5.4 outputs now by default warnings about incorrect method signatures, such as the one in DatabaseLoggerAppModel:54. The patch fixes this. I hope it is helpful Kurt
Possibly, detect if the plugin is available to use this or ignore...
I had several problems with this plugin and Cake 2.4. I made some changes and everything is working right in the last version (2.4.4).
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');...
here: class LogEntry extends Model { ``` function beforeSave($options) { if (empty($this->data['LogEntry']['id'])) { $this->data['LogEntry']['url'] = Router::url('', true); $this->data['LogEntry']['ip'] = ip2long($_SERVER['REMOTE_ADDR']); $this->data['LogEntry']['time'] = time(); $this->data['LogEntry']['datetime'] = date('Y-m-d H:i:s'); } return true;...
here's mine. no extras in the table name, no duplicate column CREATE TABLE IF NOT EXISTS `log_entries` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `type` varchar(45) DEFAULT NULL, `message` text,...