Skip to content

Simple var dump or log variable without using dd() function

License

Notifications You must be signed in to change notification settings

codeboxrcodehub/writelog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Write Log Laravel Package

Simplified logging for laravel application. You can use it for log your message, array, object etc. Sometimes we need to see if the data is coming from the request or database without stopping the execution of the application. we can easily check by this package.

Downloads Starts

Requirements

  • PHP >=7.2
  • Laravel >= 6

Installation

composer require codeboxr/writelog

Usage

use Codeboxr\Writelog\Facade\WriteLog

WriteLog::log(['codeboxr','laravel']);

or you can simply use our helper methods

writelog(['codeboxr','laravel']);

If you want to to edit your file path or file name you should publish config file

php artisan vendor:publish --provider="Codeboxr\Writelog\WriteLogServiceProvider"

after publishing the config you can see it in config/writelog.php then you can customize everything in your ways

return [
    
    "directory" => base_path(), // Log Store Directory path
    
    "file_name" => "debug.log" // Log file name
];

Contributing

Contributions to the Writelog package are welcome. Please note the following guidelines before submitting your pull request.

  • Follow PSR-4 coding standards.

License

Writelog is licensed under the MIT License.

Copyright 2022 Codeboxr