<commit_before>Laraval
=======

Laraval supports Monolog out of the box, which also provides a native Sentry handler.

To configure logging, pop open your ``bootstrap/app.php`` file, and do the following:


.. code-style:: php

    $app->configureMonologUsing(function($monolog) {
        $client = new Raven_Client('___DSN___')

        $handler = new Monolog\Handler\RavenHandler($client);
        $handler->setFormatter(new Monolog\Formatter\LineFormatter("%message% %context% %extra%\n"));

        $monolog->pushHandler($ravenHandler);
    });<commit_msg>Add docs for Laraval 4.x<commit_after>Laraval
=======

Laraval supports Monolog out of the box, which also provides a native Sentry handler.

Laraval 5.x
-----------

To configure logging, pop open your ``bootstrap/app.php`` file, and insert the following:

.. code-style:: php

    $app->configureMonologUsing(function($monolog) {
        $client = new Raven_Client('___DSN___')

        $handler = new Monolog\Handler\RavenHandler($client);
        $handler->setFormatter(new Monolog\Formatter\LineFormatter("%message% %context% %extra%\n"));

        $monolog->pushHandler($ravenHandler);
    });

Laraval 4.x
-----------

To configure logging, pop open your ``app/start/global.php`` file, and insert the following:

.. code-style:: php

    $client = new Raven_Client('___DSN___')

    $handler = new Monolog\Handler\RavenHandler($client);
    $handler->setFormatter(new Monolog\Formatter\LineFormatter("%message% %context% %extra%\n"));

    $monolog = Log::getMonolog();
    $monolog->pushHandler($ravenHandler);
{'fraction_non_alphanumeric': 0.15272496831432192, 'fraction_numerical': 0.0019011406844106464, 'mean_word_length': 3.934375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '943838', 'n_tokens_mistral': 484, 'n_tokens_neox': 452, 'n_words': 117}