Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 5, 2024 via composer

monolog/monolog 3.5.0

Sends your logs to files, sockets, inboxes, databases and various web services
Package summary
Share
0
issues
1
license
2
MIT
Package created
27 Sep 2011
Version published
27 Oct 2023
Maintainers
1
Total deps
2
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
monolog/monolog@3.5.0
psr/log@3.0.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of monolog/monolog 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
psr/log3.0.06.77 kBMIT
prod

Visualizations

Frequently Asked Questions

What does monolog/monolog do?

Monolog/monolog is a composer package that significantly enhances the logging capabilities for PHP applications. It provides an array of features that allows for sending your logs to several destinations, including files, sockets, inboxes, databases, and various web services. This robust package supports advanced logging strategies, giving developers extensive control over how they handle logging information in their applications. Compatible with the PSR-3 interface, it ensures maximum interoperability for your libraries and flexibility for future logger replacements.

How do you use monolog/monolog?

To make use of the monolog/monolog package, first, install the latest version using composer require monolog/monolog on your terminal. Once the package is installed, you can start integrating it into your PHP projects. Here's a basic usage example:

<?php

use Monolog\Level;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;

// create a log channel
$log = new Logger('name');
$log->pushHandler(new StreamHandler('path/to/your.log', Level::Warning));

// add records to the log
$log->warning('Foo');
$log->error('Bar');

In this snippet, a log channel is created, a handler is pushed to the log channel, and then the logger is used to record warning and error messages. The StreamHandler writes the log messages to a specified path with a designated log level.

Where are the monolog/monolog docs?

The official documentation for the monolog/monolog package can be found within the GitHub repository at https://github.com/Seldaek/monolog.git. This includes detailed information about its installation, basic and advanced usage instructions, details about handlers, formatters, and processors, utilities, how to extend monolog, and the structure of log records. These guides are instrumental for developers looking to leverage the full capabilities of this complex logging package, ensuring they can effectively apply and tailor it to their unique project requirements.