PHPackages                             dtvmedia/laravel-log-tracer - 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. dtvmedia/laravel-log-tracer

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

dtvmedia/laravel-log-tracer
===========================

A simple package for enhancing Laravel logging by adding the source from where the log was triggered, making it easier to trace the origin of log entries.

v1.0(1mo ago)17MITPHPPHP ^8.2CI passing

Since Feb 20Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/dtvmedia/laravel-log-tracer)[ Packagist](https://packagist.org/packages/dtvmedia/laravel-log-tracer)[ Docs](https://github.com/dtvmedia/laravel-log-tracer)[ GitHub Sponsors](https://github.com/dtvmedia)[ RSS](/packages/dtvmedia-laravel-log-tracer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (10)Versions (8)Used By (0)

Laravel Log Tracer
==================

[](#laravel-log-tracer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/db368c533f694dd15152d2c723ca09bc6dad055a65b0030b348164ca6e8c3fbd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6474766d656469612f6c61726176656c2d6c6f672d7472616365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dtvmedia/laravel-log-tracer)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ef56dc896f9d50f5009e1e6b3f44d014d8c73e7fb4b622063d886cc5077bc6f4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6474766d656469612f6c61726176656c2d6c6f672d7472616365722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/dtvmedia/laravel-log-tracer/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/a6faebb84716ca7861acb435bbe05d6c0b412fe958f469b4eedd598b3d10cb9f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6474766d656469612f6c61726176656c2d6c6f672d7472616365722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/dtvmedia/laravel-log-tracer/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/1db9466e19ba17d0b96f0cd107becfb58ac68369590fed9691e76b7aedb296d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6474766d656469612f6c61726176656c2d6c6f672d7472616365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dtvmedia/laravel-log-tracer)

🔍 A simple package for enhancing Laravel logging by adding the source from where the log was triggered, making it easier to trace the origin of log entries.

[![laravel-log-tracer-demo.log](assets/header.png)](assets/header.png)

Features:
---------

[](#features)

- Adds the origin to each log entry
- Works seamlessly with Laravel's default logging configuration
- Supports custom formats

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

[](#installation)

You can install the package via composer:

```
composer require dtvmedia/laravel-log-tracer
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-log-tracer-config"
```

This is the contents of the published config file:

```
