Looking to hire Laravel developers? Try LaraJobs
This package is not available.

logs-laravel maintained by raysulkobir

Description
A basic but lovely log generator for the Laravel package
Author
Last update
2024/03/24 16:35 (dev-main)
License
Links
Downloads
6

Comments
comments powered by Disqus

Laravel log generator

A basic but lovely log generator for the Laravel package.

Requires: Laravel >= 10.0

License: MIT

Installation

Begin by installing this package through Composer. Just run following command to terminal-

composer require raysulkobir/logs-laravel

Configuration

Service Provider Registration In config/app.php, add in providers array -

   'providers' => [
          // .........................
          Raysulkobir\LogsLaravel\LogsServiceProvider::class,
   ]

Database migration

   php artisan migrate

Use from Controller

Import first the UniqueSlug facade

   use Raysulkobir\LogsLaravel\Logger\Logger;

Example

// 1st parameter is string table_name // 2nd parameter is string response // 3rd parameter is integer table_id default

// This line has been added for clarification

Logger::logDb('type', ['a', 'b', 'c'], 100);

// 1st parameter is string response

Logger::logFile('{"Envelope":{"Body":{"Fault":{"faultcode":"soap:Server","detail":{"source":{"errorcode":"protocol.http.TooBigBody"}},"faultstring":"Body buffer overflow","faultactor":{}}},"encodingStyle":"http://schemas.xmlsoap.org/soap/encoding/"}');

This logDb

Screenshot_1

This logFile

fileupload

Security

If you discover any security-related issues, please email raysulkobir97@gmail.com instead of using the issue tracker.