This is an external open-source GitHub repository imported into the WOCSOL Marketplace for discovery. The original repository owner is the primary creator.
Sends your logs to files, sockets, inboxes, databases and various web services
Sends your logs to files, sockets, inboxes, databases and various web services
# Monolog - Logging for PHP [](https://github.com/Seldaek/monolog/actions) [](https://packagist.org/packages/monolog/monolog) [](https://packagist.org/packages/monolog/monolog) >**Note** This is the **documentation for Monolog 3.x**, if you are using older releases >see the documentation for [Monolog 2.x](https://github.com/Seldaek/monolog/blob/2.x/README.md) or [Monolog 1.x](https://github.com/Seldaek/monolog/blob/1.x/README.md) Monolog sends your logs to files, sockets, inboxes, databases and various web services. See the complete list of handlers below. Special handlers allow you to build advanced logging strategies. This library implements the [PSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md) interface that you can type-hint against in your own libraries to keep a maximum of interoperability. You can also use it in your applications to make sure you can always use another compatible logger at a later time. As of 1.11.0 Monolog public APIs will also accept PSR-3 log levels. Internally Monolog still uses its own level scheme since it predates PSR-3. Sponsored by: Better Stack lets you centralize, search, and visualize your logs. ## Installation Install the latest version with ```bash composer require monolog/monolog ``` ## Basic Usage ```php pushHandler(new StreamHandler('path/to/your.log', Level::Warning)); // add records to the log $log->warning('Foo'); $log->error('Bar'); ``` ## Documentation - [Usage Instr
Ask questions or discuss this product. New comments are reviewed before publishing.
Loading comments...