Download the PHP
package cafe-serendipity/laravel-easy-log without Composer
On this page you can find all versions of the php package
cafe-serendipity/laravel-easy-log. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor cafe-serendipity Package laravel-easy-log Short Description Makes logging easy inside your Laravel-project. Includes handlers for file-, MySql-, stdOut- & stdError- and also mail-logging. License
MIT
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Laravel-Easy-Log helps you to log into differnet files per level or into a MySQL-datatbase, for which you also get a Log-view.
Installation
AddProvider
add the provider to config/app.php
Publish files
having the configuration-file, views & controller available in your application, you have to publish them
Decide how to log
Application-Level
if you wanna log on application-level, means also Laravel is logging through Laravel-Easy-Log, add the following to bootstrap/app.php just before return $app;. Because Laravel-Easy-Log is logging ow for you, you have to switch on at least file or db in config/laravel-easy-log.php
now use it as usual:
Custom-Level
if you don't wanna have Laravel logging through Laravel-Easy-Log, but you wanna do it on your own, you have to create an instance of Laravel-Easy-Log:
now use the instance:
Configure Laravel-Easy-Log
Open up config/laravel-easy-log and enable the handlers you want to use. Basically you can use the same options like in Monolog.
DB
use_default_connection You can use your default DB-connection or define a custom one.
app is just another column, if you use different Laravel-applications and the same logging-server, so you can filter them better out.
table the table which will be created for logging
columns define here some extra columns, which you can use when you log, which is similar to Monolog's context logging
Log-View
To get to the view of your DB-Logs goto the route /lel
Files
log_levels define here which files you want foreach log-level
License
laravel-easy-log is licensed under the MIT License - see the LICENSE file for details.
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package cafe-serendipity/laravel-easy-log contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.