PHPackages                             webtechnick/cakephp-database-logger-plugin - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. webtechnick/cakephp-database-logger-plugin

ActiveCakephp-plugin

webtechnick/cakephp-database-logger-plugin
==========================================

CakePHP Database Logger Plugin

311.3k18[6 issues](https://github.com/webtechnick/CakePHP-DatabaseLogger-Plugin/issues)[3 PRs](https://github.com/webtechnick/CakePHP-DatabaseLogger-Plugin/pulls)PHP

Since Mar 2Pushed 10y ago4 watchersCompare

[ Source](https://github.com/webtechnick/CakePHP-DatabaseLogger-Plugin)[ Packagist](https://packagist.org/packages/webtechnick/cakephp-database-logger-plugin)[ RSS](/packages/webtechnick-cakephp-database-logger-plugin/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

Database CakePHP Plugin
=======================

[](#database-cakephp-plugin)

- Author: Nick Baker
- Version: 1.3
- License: MIT
- Website:

Features
--------

[](#features)

Database CakeLogger for CakePHP 2.x applications. Easy setup. Ideal for multi app applications where logging to a file is just not convinient. Simple admin interface to view/delete logs included.

Changelog
---------

[](#changelog)

- 1.4.0 Compatible with CakePHP 2.4
- 1.3.0 New configuration file to change default read, write datasources.
- 1.2.0 Now using FULLTEXT search on messages, better indexes. Update your schema.
- 1.1.0 Adding new fields URI, hostname, referrer, and IP automatically logged on each log call. (only applys to default Log model)
- 1.0.0 Initial Release

Install
-------

[](#install)

Clone the repository into your `app/Plugin/DatabaseLogger` directory:

```
$ git clone git://github.com/webtechnick/CakePHP-DatabaseLogger-Plugin.git app/Plugin/DatabaseLogger

```

Run the schema into your database:

```
$ cake schema create --plugin DatabaseLogger

```

Setup
-----

[](#setup)

Create a config file in `app/Config/database_logger` with the following (example file in plugin.)

```
$config = array(
	'DatabaseLogger' => array(
		'write' => 'default', //DataSource to write to.
		'read' => 'default', //Datasource to read from.
	)
);

```

Pro Tip: You can read from a different datasource than you write to, and they both can be different than your default.

Update the file `app/Config/bootstrap.php` with the following configurations like so:

```
App::uses('CakeLog','Log');
CakeLog::config('default', array('engine' => 'DatabaseLogger.DatabaseLog'));

```

Usage
-----

[](#usage)

Anywhere in your app where you call log() or CakeLog::write the database logger will be used.

```
	$this->log('This is a detailed message logged to the database','error');
	CakeLog::write('error', 'This is a detailed message logged to the database');

```

Navigate to `http://www.example.com/admin/database_logger/logs` to view/search/delete your logs.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/11288cf7d118c49c118ca38127380beffe290cf84a4b01243e4177e6e8fd319c?d=identicon)[webtechnick](/maintainers/webtechnick)

---

Top Contributors

[![webtechnick](https://avatars.githubusercontent.com/u/26438?v=4)](https://github.com/webtechnick "webtechnick (37 commits)")[![beckye67](https://avatars.githubusercontent.com/u/3694753?v=4)](https://github.com/beckye67 "beckye67 (2 commits)")[![sauralph](https://avatars.githubusercontent.com/u/256639?v=4)](https://github.com/sauralph "sauralph (1 commits)")[![steinkel](https://avatars.githubusercontent.com/u/151761?v=4)](https://github.com/steinkel "steinkel (1 commits)")[![zeroasterisk](https://avatars.githubusercontent.com/u/23422?v=4)](https://github.com/zeroasterisk "zeroasterisk (1 commits)")

### Embed Badge

![Health badge](/badges/webtechnick-cakephp-database-logger-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/webtechnick-cakephp-database-logger-plugin/health.svg)](https://phpackages.com/packages/webtechnick-cakephp-database-logger-plugin)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
