<commit_before><?php

/*
 * This file is part of the 'org.octris.core' package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace org\octris\core {
    /**
     * Base class of logging framework.
     *
     * @octdoc      c:core/logger
     * @copyright   copyright (c) 2011 by <NAME>
     * @author      <NAME> <<EMAIL>>
     */
    class logger
    /**/
    {
        /**
         * Error levels.
         *
         * @octdoc  d:logger/T_EMERGENCY, T_ALERT, T_CRITICAL, T_ERROR, T_WARNING, T_NOTICE, T_INFO, T_DEBUG
         */
        const T_EMERGENCY = 1;
        const T_ALERT     = 2;
        const T_CRITICAL  = 4;
        const T_ERROR     = 8;
        const T_WARNING   = 16;
        const T_NOTICE    = 32;
        const T_INFO      = 64;
        const T_DEBUG     = 128;
        /**/

        /**
         * Helper constants for making configuring writers more easy.
         *
         * @octdoc  d:logger/T_ALL
         */
        const T_ALL = 255;
        /**/

        /**
         * Configured writers.
         *
         * @octdoc  v:logger/$writers
         * @var     array
         */
        private $writers = array(
            self::T_EMERGENCY => array(),
            self::T_ALERT     => array(),
            self::T_CRITICAL  => array(),
            self::T_ERROR     => array(),
            self::T_WARNING   => array(),
            self::T_NOTICE    => array(),
            self::T_INFO      => array(),
            self::T_DEBUG     => array()
        );
        /**/

        /**
         * Level IDs in syslog format.
         *
         * @octdoc  v:logger/$level_ids
         * @var     array
         */
        private $level_ids = array(
            self::T_EMERGENCY => 0,
            self::T_ALERT     => 1,
            self::T_CRITICAL  => 2,
            self::T_ERROR     => 3,
            self::T_WARNING   => 4,
            self::T_NOTICE    => 5,
            self::T_INFO      => 6,
            self::T_DEBUG     => 7
        );
        /**/

        /**
         * Logger instance.
         *
         * @octdoc  v:logger/$instance
         * @var     \org\octris\core\logger
         */
        private $instance = null;
        /**/

        /**
         * Facility the error was logged from. Either a value set using setValue<commit_msg>- bugfix: property needs to be static<commit_after><?php

/*
 * This file is part of the 'org.octris.core' package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace org\octris\core {
    /**
     * Base class of logging framework.
     *
     * @octdoc      c:core/logger
     * @copyright   copyright (c) 2011 by <NAME>
     * @author      <NAME> <<EMAIL>>
     */
    class logger
    /**/
    {
        /**
         * Error levels.
         *
         * @octdoc  d:logger/T_EMERGENCY, T_ALERT, T_CRITICAL, T_ERROR, T_WARNING, T_NOTICE, T_INFO, T_DEBUG
         */
        const T_EMERGENCY = 1;
        const T_ALERT     = 2;
        const T_CRITICAL  = 4;
        const T_ERROR     = 8;
        const T_WARNING   = 16;
        const T_NOTICE    = 32;
        const T_INFO      = 64;
        const T_DEBUG     = 128;
        /**/

        /**
         * Helper constants for making configuring writers more easy.
         *
         * @octdoc  d:logger/T_ALL
         */
        const T_ALL = 255;
        /**/

        /**
         * Configured writers.
         *
         * @octdoc  v:logger/$writers
         * @var     array
         */
        private $writers = array(
            self::T_EMERGENCY => array(),
            self::T_ALERT     => array(),
            self::T_CRITICAL  => array(),
            self::T_ERROR     => array(),
            self::T_WARNING   => array(),
            self::T_NOTICE    => array(),
            self::T_INFO      => array(),
            self::T_DEBUG     => array()
        );
        /**/

        /**
         * Level IDs in syslog format.
         *
         * @octdoc  v:logger/$level_ids
         * @var     array
         */
        private $level_ids = array(
            self::T_EMERGENCY => 0,
            self::T_ALERT     => 1,
            self::T_CRITICAL  => 2,
            self::T_ERROR     => 3,
            self::T_WARNING   => 4,
            self::T_NOTICE    => 5,
            self::T_INFO      => 6,
            self::T_DEBUG     => 7
        );
        /**/

        /**
         * Logger instance.
         *
         * @octdoc  v:logger/$instance
         * @var     \org\octris\core\logger
         */
        private static $instance = null;
        /**/

        /**
         * Facility the error was logged from. Either a value set using setValue
{'fraction_non_alphanumeric': 0.121524201853759, 'fraction_numerical': 0.01153450051493306, 'mean_word_length': 1.2575546257554626, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 49, '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': '1837764', 'n_tokens_mistral': 1532, 'n_tokens_neox': 1466, 'n_words': 352}