<commit_before><?php
declare(strict_types=1);

use Symfony\Component\Config\Resource\ClassExistenceResource;
use Symfony\Component\Console\Application;

$handlers = [
    'main' => [
        'type'          => 'fingers_crossed',
        'action_level'  => 'error',
        'handler'       => 'nested',
    ],
    'nested' => [
        'type'  => 'stream',
        'path'  => '%kernel.logs_dir%/%kernel.environment%.log',
        'level' => 'notice',
    ],
];

$container->addResource(new ClassExistenceResource(Application::class));

if (class_exists(Application::class)) {
    $handlers['console'] = [
        'type'                      => 'console',
        'process_psr_3_messages'    => false,
        'channels'                  => ['!event', '!doctrine'],
    ];
}

$container->loadFromExtension('monolog', [
    'handlers' => $handlers,
]);
<commit_msg>Changed monolog configuration within test environment<commit_after><?php
declare(strict_types=1);

use Symfony\Component\Config\Resource\ClassExistenceResource;
use Symfony\Component\Console\Application;

$handlers = [
    'main' => [
        'type'          => 'fingers_crossed',
        'action_level'  => 'error',
        'handler'       => 'nested',
    ],
    'nested' => [
        'type'  => 'stream',
        'path'  => '%kernel.logs_dir%/%kernel.environment%.log',
        'level' => 'debug',
    ],
];

$container->addResource(new ClassExistenceResource(Application::class));

if (class_exists(Application::class)) {
    $handlers['console'] = [
        'type'                      => 'console',
        'process_psr_3_messages'    => false,
        'channels'                  => ['!event', '!doctrine'],
    ];
}

$container->loadFromExtension('monolog', [
    'handlers' => $handlers,
]);

{'fraction_non_alphanumeric': 0.1781055019852524, 'fraction_numerical': 0.0022688598979013048, 'mean_word_length': 2.644628099173554, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '3723477', 'n_tokens_mistral': 547, 'n_tokens_neox': 540, 'n_words': 77}