Download the PHP package yapro/monolog-ext without Composer

On this page you can find all versions of the php package yapro/monolog-ext. 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 monolog-ext

MonologExt

The really useful Monolog`s extensions.

lib tests

Installation

Add as a requirement in your composer.json file or run

Configuration of Symfony >= 2.x

You can use the best way to handle your logs because it's the easiest way:

and don't forget to register the handler as a service:

You will get the features:

and other features such as development mode.

You can also use the collection of monolog processors, that gives you the opportunity to handle and log different errors.

Add needed for you app to your config.yml

then use logger, examples:

Look up, variable $e will be transformed to string (Monolog`s functionality), and you will get: Message of Exception + Stack trace

By default, \YaPro\MonologExt\VarHelper extract an extra data into string by standard depth's level which is equal to two. But, you can use any depth's level, example is equal a five:

What is ExtraException

ExtraException is exception which you can to create as object, to add the extra data and throw away. After throwing the Monolog ExceptionProcessor will catches this exception and saves extra data to logs. Examples:

Recommendation

Add service json_formatter to file app/config/config.yml It will help you to format error in the json, and then you can use https://www.elastic.co/products/kibana for aggregate all errors.

And don`t forget to add a monolog formatter:

If you wish to collect some data of http request, you can add WebProcessor:

Configuration for projects without Symfony framework.

Monolog Cascade extension gives you the opportunity to handle and log errors of different levels.

Usage

Just use your logger as shown below

Configuring your loggers

Monolog Cascade supports the following config formats:

Configuration structure

Here is a sample Php array config file:

More detailed information about the configurations - https://github.com/theorchard/monolog-cascade

Tests

Dev

Run tests with xdebug:


All versions of monolog-ext with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
symfony/var-dumper Version ^3.4|^4.4|^5.0|^6.0
monolog/monolog Version ^1.25.1|^2
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 yapro/monolog-ext contains the following files

Loading the files please wait ....