PHPackages                             tyea/redlog - 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. [Database &amp; ORM](/categories/database)
4. /
5. tyea/redlog

ActiveLibrary[Database &amp; ORM](/categories/database)

tyea/redlog
===========

A Laravel package for writing log messages to a MySQL, PostgreSQL, SQLite, or SQL Server database

1.0.3(6y ago)1382BSD-3-ClausePHP

Since Mar 29Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tyea/redlog)[ Packagist](https://packagist.org/packages/tyea/redlog)[ Docs](https://github.com/tyea/redlog)[ RSS](/packages/tyea-redlog/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (5)Used By (0)

Red Log
=======

[](#red-log)

About
-----

[](#about)

Red Log is a Laravel package for writing log messages to a MySQL, PostgreSQL, SQLite, or SQL Server database.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0
- Laravel &gt;= 5.5

Installation
------------

[](#installation)

```
composer require tyea/redlog

```

Usage
-----

[](#usage)

Update your `.env` and `.env.example` files:

```
LOG_CHANNEL=database
LOG_TABLE=logs

```

Update your `config/logging.php` file:

```
"database" => [
	"driver" => "monolog",
	"handler" => "Tyea\\RedLog\\DatabaseHandler",
	"table" => env("LOG_TABLE", "logs")
]

```

Run these commands:

```
php artisan log:table
php artisan migrate

```

Update your `app/Console/Kernel.php` file:

```
$schedule->command("log:clear")->daily();

```

Author
------

[](#author)

Written by Tom Yeadon in April 2020.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Every ~13 days

Total

4

Last Release

2199d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/489a9b7def27b8ae6103bb9bc6e29234c9d6e7b85e974e437294743ebef3e2a0?d=identicon)[tyea](/maintainers/tyea)

---

Tags

loglaravelloggingdatabasemysqlsqlitepostgresqlloggerrelationalmonologsql serverredlog

### Embed Badge

![Health badge](/badges/tyea-redlog/health.svg)

```
[![Health](https://phpackages.com/badges/tyea-redlog/health.svg)](https://phpackages.com/packages/tyea-redlog)
```

###  Alternatives

[aura/sqlquery

Object-oriented query builders for MySQL, Postgres, SQLite, and SQLServer; can be used with any database connection library.

4572.9M34](/packages/aura-sqlquery)[wazaari/monolog-mysql

A handler for Monolog that sends messages to MySQL

140884.1k6](/packages/wazaari-monolog-mysql)[vcian/laravel-db-auditor

Database DB Auditor provide leverage to audit your MySql,sqlite, PostgreSQL database standards and also provide options to add constraints in table.

28535.1k1](/packages/vcian-laravel-db-auditor)[aura/sqlschema

Provides facilities to read table names and table columns from a database using PDO.

41234.1k4](/packages/aura-sqlschema)[bradmkjr/monolog-wordpress

A handler for Monolog that sends messages to MySQL via WordPress Functions

2817.1k](/packages/bradmkjr-monolog-wordpress)[moharrum/laravel-adminer

Adminer database management tool for your Laravel application.

451.0k](/packages/moharrum-laravel-adminer)

PHPackages © 2026

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