Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeboxrcodehub/writelog
Simple var dump or log variable without using dd() function
https://github.com/codeboxrcodehub/writelog
laravel laravel-package php
Last synced: 15 days ago
JSON representation
Simple var dump or log variable without using dd() function
- Host: GitHub
- URL: https://github.com/codeboxrcodehub/writelog
- Owner: codeboxrcodehub
- License: mit
- Created: 2022-06-14T06:36:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-26T09:37:22.000Z (over 2 years ago)
- Last Synced: 2024-11-29T01:42:02.239Z (2 months ago)
- Topics: laravel, laravel-package, php
- Language: PHP
- Homepage: https://codeboxr.com
- Size: 9.77 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://img.shields.io/packagist/dt/codeboxr/writelog)](https://packagist.org/packages/codeboxr/writelog)
[![Starts](https://img.shields.io/packagist/stars/codeboxr/writelog)](https://packagist.org/packages/codeboxr/writelog)## Requirements
- PHP >=7.2
- Laravel >= 6## Installation
> composer require codeboxr/writelog
## Usage
```
use Codeboxr\Writelog\Facade\WriteLogWriteLog::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](http://www.php-fig.org/psr/psr-4/) coding standards.
## License
Writelog is licensed under the [MIT License](http://opensource.org/licenses/MIT).
Copyright 2022 [Codeboxr](https://codeboxr.com)