package to log routines and sql query

1.0.13 2023-01-03 19:36 UTC

This package is auto-updated.

Last update: 2024-04-30 00:35:55 UTC


README

Software License

About

The logs package to send logs to console with extra info and catch query sql .

Tutorial how create composer package

Installation

Require the cirelramos/logs package in your composer.json and update your dependencies:

composer require cirelramos/logs

Configuration

set provider

'providers' => [
    // ...
    Cirelramos\Logs\Providers\ServiceProvider::class,
],

The defaults are set in config/logs.php. Publish the config to copy the file to your own config:

php artisan vendor:publish --provider="Cirelramos\Logs\Providers\ServiceProvider"

Note: this is necessary to you can change default config

Usage

add provider in config/app.php

    'providers' => [
        Cirelramos\Logs\Providers\QueryLogProvider::class,
   ]
$extraValues['test'] = 1;
LogConsoleFacade::full()->tracker()->log('your message', $extraValues);

License

Released under the MIT License, see LICENSE.