<commit_before>
namespace Owl\Log;

use Owl\Log\WriterInterface;
use Owl\Log\Exception\InvalidWriterException;

/**
 * Logger usage:
 *
 * $Logger = new Logger([
 *     [
 *         'class' => '\Owl\Log\Writer\File',
 *         'levels' => ['error', 'warning'],
 *         'formatter' => '\Owl\Log\Formatter\Syslog',
 *         'options' => [
 *             'logFile' => APP_ROOT '/logs/my.log'
 *         ]
 *     ],
 *     [
 *         'class' => '\Owl\Log\Writer\Email',
 *         'levels' => ['alert'],
 *         'formatter' => '\Owl\Log\Formatter\Line',
 *         'options' => [
 *             'from'  => '<EMAIL>',
 *             'to' => '<EMAIL>',
 *             'subject' => 'System Alert log'
 *         ]
 *     ],
 * ]);
 */
class Logger extends AbstractLogger implements LoggerInterface
{
    /**
     * Array of <Record> elements
     */
    protected records = [] {
        get
    };
<commit_msg>Update Logger usage<commit_after>
namespace Owl\Log;

use Owl\Log\WriterInterface;
use Owl\Log\Exception\InvalidWriterException;

/**
 * Logger usage:
 *
 * $Logger = new Logger([
 *     [
 *         'class' => '\Owl\Log\Writer\File',
 *         'levels' => [Logger::LEVEL_ERROR, Logger::LEVEL_WARNING],
 *         'formatter' => '\Owl\Log\Formatter\Syslog',
 *         'options' => [
 *             'logFile' => APP_ROOT '/logs/my.log'
 *         ]
 *     ],
 *     [
 *         'class' => '\Owl\Log\Writer\Email',
 *         'levels' => [Logger::LEVEL_ALERT],
 *         'formatter' => '\Owl\Log\Formatter\Line',
 *         'options' => [
 *             'from'  => '<EMAIL>',
 *             'to' => '<EMAIL>',
 *             'subject' => 'System Alert log'
 *         ]
 *     ],
 * ]);
 */
class Logger extends AbstractLogger implements LoggerInterface
{
    /**
     * Array of <Record> elements
     */
    protected records = [] {
        get
    };

{'fraction_non_alphanumeric': 0.19037433155080213, 'fraction_numerical': 0.0, 'mean_word_length': 1.7883755588673622, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 33, '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': '3664869', 'n_tokens_mistral': 603, 'n_tokens_neox': 596, 'n_words': 104}