PHPackages                             dovutuan/lalog - 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. dovutuan/lalog

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

dovutuan/lalog
==============

Logging query laravel

1.0.0(9mo ago)11MITPHPPHP &gt;=7.4

Since Aug 15Pushed 9mo agoCompare

[ Source](https://github.com/dovutuan/lalog)[ Packagist](https://packagist.org/packages/dovutuan/lalog)[ Docs](https://github.com/dovutuan/lalog)[ RSS](/packages/dovutuan-lalog/feed)WikiDiscussions master Synced 2mo ago

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

Lalog - Laravel Query Logger
============================

[](#lalog---laravel-query-logger)

[![Latest Version](https://camo.githubusercontent.com/3c9a611c4496c61fb7cb3f170ee441a2f14446781a9d02b6cd6d62e33b26eb45/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f76757475616e2f6c616c6f67)](https://packagist.org/packages/dovutuan/lalog)[![License](https://camo.githubusercontent.com/4f27144b5a67031a5186f84a1b825a1a470397ed08584b4e7e45f88d141289c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646f76757475616e2f6c616c6f67)](https://packagist.org/packages/dovutuan/lalog)[![Latest Stable Version](https://camo.githubusercontent.com/b07fdd98483c2e80f0115bad42352d6e2e8545bf1f5cd03b789a348dbbfc9b55/687474703a2f2f706f7365722e707567782e6f72672f646f76757475616e2f6c616c6f672f76)](https://packagist.org/packages/dovutuan/lalog)[![Total Downloads](https://camo.githubusercontent.com/4f270d5f725b0f086227ffac948a334011dbda5e637142cd7aa12af4f3fce233/687474703a2f2f706f7365722e707567782e6f72672f646f76757475616e2f6c616c6f672f646f776e6c6f616473)](https://packagist.org/packages/dovutuan/lalog)[![Latest Unstable Version](https://camo.githubusercontent.com/d4590326734c2854c8fa55f9764a2a1093156fec92f6b1ff8c465399b16d3bcc/687474703a2f2f706f7365722e707567782e6f72672f646f76757475616e2f6c616c6f672f762f756e737461626c65)](https://packagist.org/packages/dovutuan/lalog)[![License](https://camo.githubusercontent.com/b0c85b3119a8cea09a9f916d32d02b7ecf01dd4453c19eb6f9c6cf45f5fa0a53/687474703a2f2f706f7365722e707567782e6f72672f646f76757475616e2f6c616c6f672f6c6963656e7365)](https://packagist.org/packages/dovutuan/lalog)

A simple and efficient Laravel package for logging database queries with automatic file rotation and customizable storage options.

Features
--------

[](#features)

- 📜 Logs all executed queries with bindings and execution time.
- 📅 Daily log files with automatic rotation based on file size.
- ⚙️ Configurable log storage disk, directory, and formatting.
- 🔄 Supports Laravel versions **7.x → 12.x**.
- 🚀 Easy integration via Service Provider.

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

[](#-installation)

Install via Composer:

```
composer require --dev dovutuan/lalog
```

Publish the configuration file:

```
php artisan vendor:publish --provider="Dovutuan\Lalog\ServiceProvider" --tag="lalog"
```

⚙️ Configuration
----------------

[](#️-configuration)

Edit `config/lalog.php` to customize your logging preferences:

```
