vlsv/extended-laravel-logger

Extends the functionality of the default logger by adding the file path and line number where the logger was called to the context.

1.0.1 2024-01-08 18:24 UTC

This package is auto-updated.

Last update: 2024-05-08 19:10:38 UTC


README

Extended Laravel Logger is a library for logging in Laravel, extending the functionality of the default logger by adding the file path and line number to the context where the logger was called.

Installation

You can install the package via Composer:

composer require vlsv/extended-laravel-logger

Usage

Example of using the debug method:

use Vlsv\ExtendedLaravelLogger\Log;

Log::debug('This is a debug message', ['additional' => 'context']);

The library provides methods for different logging levels: debug, info, notice, warning, error, critical, alert, emergency.

Additional Context

Each log automatically adds context, including the file path and line number.