> ## 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) ist die beliebteste Logging-Bibliothek für PHP. Sie können Monolog direkt verwenden, um Logs an AppSignal zu senden.

Installieren Sie das Monolog-Auto-Instrumentierungspaket:

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

Fügen Sie anschließend `Appsignal\Integrations\Monolog\Handler` zum Handler-Stack von Monolog hinzu.

```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');
```

Weitere Informationen zu den Logging-Funktionen von AppSignal finden Sie in der [Logging-Dokumentation](/logging/integrations/php).
