> ## Documentation Index
> Fetch the complete documentation index at: https://docs.appsignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Monolog

[Monolog](https://github.com/Seldaek/monolog) is the most popular logging library for PHP. You can use Monolog directly to send logs to AppSignal.

Install the Monolog auto-instrumentation package:

```bash Shell theme={null}
composer require open-telemetry/opentelemetry-logger-monolog
```

Then add `Appsignal\Integrations\Monolog\Handler` to Monolog's handler stack.

```php PHP theme={null}
use Appsignal\Integrations\Monolog\Handler;
use Monolog\Logger;

$logger = new Logger('app');
$logger->pushHandler(Handler::withLevel('info'));

$logger->info('My log message');
```

Visit [logging documentation](/logging/integrations/php) to find out more about AppSignal logging capabilities.
