Download the PHP package arwg/laravel-final-logger without Composer

On this page you can find all versions of the php package arwg/laravel-final-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

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.
Please rate this library. Is it a good library?

Informations about the package laravel-final-logger

Laravel-Final-Logger

Latest Version on Packagist

Overview

Laravel-final-logger provides unique and consistent formats throughout log (all Http, Ajax requests & responses), payload (all Http, Ajax requests & responses), and server-side error log. Also, you can nullify any children properties to reduce the size of logged files.

Installation

config/app.php

bootstrap/app.php

config/final-logger.php (sample)

Usage

Simple to use

1. How to error-log

2. How to general-log

IMPORTANT

Register logging path on 'config/final-logger.php'

Register this Middleware to 'app/Http/Kernal.php'

Set certain properties to empty (due to reducing size of log files or whatever...)

The advantage of the library is that it is possible to set certain properties empty in payload hierarchy. Let's say we are setting the property 'stats' empty and 'img_cnt' empty at an uri (api/v2/final-test-uri/images).

Modify 'config/final-logger.php'.

Now they all have been marked as "xxx" for 'api/v2/final-test-uri/images'.

3. Config file

Check the properties marked 'necessary' below. The others are just what I customized.

4. How to throw errors on codes

For handled errors, use this unique format.

or for unhandled errors. No need to handle any. But if you need...

5. Error logging without throwing exceptions

This doesn't make application stop but just log.

6. Success payload (not necessary)

Samples

1. server-side error log sample

2. response log sample : this is the same as children of the general_log property above.

3. error response payload sample : this is the same as children of the error_payload above.

We focus on the final endpoints, so logging is conducted at the only following two points.

1. Middleware : Response endpoints.
2. The point when the error occurs.

No request endpoint logging is conducted, as the two points can catch all request data.

Changelog

Changelog

License

License File


All versions of laravel-final-logger with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
illuminate/support Version ~5.8.0|^6.0|^7.0
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 arwg/laravel-final-logger contains the following files

Loading the files please wait ....