2017 © Pedro Peláez
 

cakephp-plugin cake-databaselog

Storing CakePHP log into database.

image

freefri/cake-databaselog

Storing CakePHP log into database.

  • Wednesday, March 22, 2017
  • by freefri
  • Repository
  • 1 Watchers
  • 0 Stars
  • 574 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 14 % Grown

The README.md

cake-databaseLog

Simple storing CakePHP 2.x log into a database., (*1)

This package does not automatically update in packagist.org, (*2)

Installation

Add "freefri/cake-databaselog": "dev-master", to your composer.json or clone the repository into Plugin/CakeDatabaselog, (*3)

Load the plugin in your bootstrap.php CakePlugin::load('CakeDatabaselog');, (*4)

Create a table in your database kind of this:, (*5)

 CREATE TABLE `log_entries` (
   `id` bigint(11) unsigned NOT NULL AUTO_INCREMENT,
   `type` varchar(50) DEFAULT NULL,
   `title` varchar(30) DEFAULT NULL,
   `message` text,
   `environment` varchar(100) DEFAULT NULL,
   `server` text,
   `created` datetime DEFAULT NULL,
   PRIMARY KEY (`id`)
 ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;

Use the new engine to log in bootstrap.php, (*6)

 CakeLog::config(
     'debug', [
         'engine' => 'CakeDatabaselog.DatabaseLog',
         'types' => ['notice', 'info', 'debug'],
         'environment' => 'production-server',
     ]
 );

You may also be interested in a more complex solution: https://github.com/dereuromark/CakePHP-DatabaseLog (those two projects are not related), (*7)

The Versions

22/03 2017

dev-master

9999999-dev https://github.com/freefri/cake-databaselog

Storing CakePHP log into database.

  Sources   Download

MIT

The Requires

 

database log cakephp

22/03 2017

0.1.4

0.1.4.0 https://github.com/freefri/cake-databaselog

Storing CakePHP log into database.

  Sources   Download

MIT

The Requires

 

database log cakephp

01/09 2014

0.1.3

0.1.3.0 https://github.com/freefri/cake-databaselog

Storing CakePHP log into database.

  Sources   Download

MIT

The Requires

 

database log cakephp

26/03 2014

0.1.2

0.1.2.0 https://github.com/markstory/acl_extras

Storing CakePHP log into database.

  Sources   Download

MIT

The Requires

 

database log cakephp

19/03 2014

0.1.0

0.1.0.0 https://github.com/markstory/acl_extras

Storing CakePHP log into database.

  Sources   Download

MIT

The Requires

 

database log cakephp