PHPackages                             maxidev/tail-logger - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. maxidev/tail-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

maxidev/tail-logger
===================

Dynamic contextual logger for Laravel with Artisan tailing support

v1.0.0(1y ago)1441[1 PRs](https://github.com/maxidevs/tail-logger/pulls)MITPHPPHP ^8.1

Since May 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/maxidevs/tail-logger)[ Packagist](https://packagist.org/packages/maxidev/tail-logger)[ RSS](/packages/maxidev-tail-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

🪵 maxidev/tail-logger
=====================

[](#-maxidevtail-logger)

**Dynamic, contextual, and tailable logging package for Laravel.**

Easily log messages into daily log files organized by custom folders, with full support for structured context data and a built-in Artisan command for colored tailing—even on Windows.

---

🚀 Features
----------

[](#-features)

✅ Dynamic directory-based log storage
✅ Daily rotating log files
✅ Structured array/object context logging
✅ Clean output format
✅ Artisan command `log:tail` for real-time log viewing
✅ Colorized output by log level (info, warning, error, success)
✅ Cross-platform tailing (Windows &amp; Unix)

---

📦 Installation
--------------

[](#-installation)

```
composer require maxidev/tail-logger
```

If installing from local or VCS:

```
composer config repositories.max-logger path ../path/to/package
composer require maxidev/tail-logger:@dev
```

Laravel will auto-discover the service provider.

---

🧰 Usage
-------

[](#-usage)

### 📄 Log to a custom path with optional level and context

[](#-log-to-a-custom-path-with-optional-level-and-context)

```
use Maxidev\Logger\TailLogger;

// Basic log
TailLogger::saveLog('User login successful', 'auth/login');

// With level
TailLogger::saveLog('Invalid credentials', 'auth/login', 'warning');

// With context (array or object)
TailLogger::saveLog('Payment processed', 'billing/invoices', 'success', [
    'user_id' => 123,
    'amount' => 49.99,
    'currency' => 'USD'
]);
```

📁 Log files are saved like:

```
storage/logs/auth/login/2025-05-17.log
storage/logs/billing/invoices/2025-05-17.log

```

---

🔍 Real-time log tailing (with colors!)
--------------------------------------

[](#-real-time-log-tailing-with-colors)

```
php artisan log:tail auth/login
php artisan log:tail billing/invoices --date=2025-05-15
php artisan log:tail api/events --live
```

✅ Fully compatible with Windows and Linux
🎨 Colorized output: green = success, yellow = warning, red = error

---

⚙️ Customization
----------------

[](#️-customization)

You can fully control:

- Path/folder structure
- Log level (`info`, `warning`, `error`, `success`)
- Context arrays
- Date formatting in logs

Internally based on [Monolog v3](https://github.com/Seldaek/monolog) and Laravel's logging conventions.

---

🧪 Requirements
--------------

[](#-requirements)

- PHP 8.1+
- Laravel 11 or 12
- Composer

---

📄 License
---------

[](#-license)

MIT © Max

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance50

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

366d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/680eb5e3b7241d194cc5df2b6afd1bba8b0cfd751a1c43f6a7bb899fa7f2a2b9?d=identicon)[maxidevs](/maintainers/maxidevs)

---

Top Contributors

[![maxidevs](https://avatars.githubusercontent.com/u/56417312?v=4)](https://github.com/maxidevs "maxidevs (1 commits)")

### Embed Badge

![Health badge](/badges/maxidev-tail-logger/health.svg)

```
[![Health](https://phpackages.com/badges/maxidev-tail-logger/health.svg)](https://phpackages.com/packages/maxidev-tail-logger)
```

###  Alternatives

[illuminate/log

The Illuminate Log package.

6224.3M518](/packages/illuminate-log)[freshbitsweb/laravel-log-enhancer

Make debugging easier by adding more data to your laravel logs

346569.0k](/packages/freshbitsweb-laravel-log-enhancer)[honeybadger-io/honeybadger-laravel

Honeybadger Laravel integration

431.2M](/packages/honeybadger-io-honeybadger-laravel)[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[kitloong/laravel-app-logger

Laravel log for your application

101.2M8](/packages/kitloong-laravel-app-logger)[shaffe/laravel-mail-log-channel

A package to support logging via email in Laravel

1286.2k](/packages/shaffe-laravel-mail-log-channel)

PHPackages © 2026

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