{
    "content": [
        {
            "type": "text",
            "text": "# Log::Log4perl::Level (perldoc)\n\n## NAME\n\nLog::Log4perl::Level - Predefined log levels\n\n## SYNOPSIS\n\nuse Log::Log4perl::Level;\nprint $ERROR, \"\\n\";\n# -- or --\nuse Log::Log4perl qw(:levels);\nprint $ERROR, \"\\n\";\n\n## DESCRIPTION\n\n\"Log::Log4perl::Level\" simply exports a predefined set of *Log4perl* log levels into the\ncaller's name space. It is used internally by \"Log::Log4perl\". The following scalars are\ndefined:\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (1 subsections)\n- **LICENSE**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Log::Log4perl::Level",
        "section": "",
        "mode": "perldoc",
        "summary": "Log::Log4perl::Level - Predefined log levels",
        "synopsis": "use Log::Log4perl::Level;\nprint $ERROR, \"\\n\";\n# -- or --\nuse Log::Log4perl qw(:levels);\nprint $ERROR, \"\\n\";",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 44,
                "subsections": [
                    {
                        "name": "Numeric levels and Strings",
                        "lines": 22
                    }
                ]
            },
            {
                "name": "LICENSE",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 17,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Log::Log4perl::Level - Predefined log levels\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Log::Log4perl::Level;\nprint $ERROR, \"\\n\";\n\n# -- or --\n\nuse Log::Log4perl qw(:levels);\nprint $ERROR, \"\\n\";\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "\"Log::Log4perl::Level\" simply exports a predefined set of *Log4perl* log levels into the\ncaller's name space. It is used internally by \"Log::Log4perl\". The following scalars are\ndefined:\n\n$OFF\n$FATAL\n$ERROR\n$WARN\n$INFO\n$DEBUG\n$TRACE\n$ALL\n\n\"Log::Log4perl\" also exports these constants into the caller's namespace if you pull it in\nproviding the \":levels\" tag:\n\nuse Log::Log4perl qw(:levels);\n\nThis is the preferred way, there's usually no need to call \"Log::Log4perl::Level\" explicitly.\n\nThe numerical values assigned to these constants are purely virtual, only used by Log::Log4perl\ninternally and can change at any time, so please don't make any assumptions. You can test for\nnumerical equality by directly comparing two level values, that's ok:\n\nif( getlogger()->level() == $DEBUG ) {\nprint \"The logger's level is DEBUG\\n\";\n}\n\nBut if you want to figure out which of two levels is more verbose, use Log4perl's own\ncomparator:\n\nif( Log::Log4perl::Level::isGreaterOrEqual( $level1, $level2 ) ) {\nprint Log::Log4perl::Level::tolevel( $level1 ),\n\" is equal or more verbose than \",\nLog::Log4perl::Level::tolevel( $level2 ), \"\\n\";\n}\n\nIf the caller wants to import level constants into a different namespace, it can be provided\nwith the \"use\" command:\n\nuse Log::Log4perl::Level qw(MyNameSpace);\n\nAfter this $MyNameSpace::ERROR, $MyNameSpace::INFO etc. will be defined accordingly.\n",
                "subsections": [
                    {
                        "name": "Numeric levels and Strings",
                        "content": "Level variables like $DEBUG or $WARN have numeric values that are internal to Log4perl.\nTransform them to strings that can be used in a Log4perl configuration file, use the\nc<tolevel()> function provided by Log::Log4perl::Level:\n\nuse Log::Log4perl qw(:easy);\nuse Log::Log4perl::Level;\n\n# prints \"DEBUG\"\nprint Log::Log4perl::Level::tolevel( $DEBUG ), \"\\n\";\n\nTo perform the reverse transformation, which takes a string like \"DEBUG\" and converts it into a\nconstant like $DEBUG, use the topriority() function:\n\nuse Log::Log4perl qw(:easy);\nuse Log::Log4perl::Level;\n\nmy $numval = Log::Log4perl::Level::topriority( \"DEBUG\" );\n\nafter which $numval could be used where a numerical value is required:\n\nLog::Log4perl->easyinit( $numval );\n"
                    }
                ]
            },
            "LICENSE": {
                "content": "Copyright 2002-2013 by Mike Schilli <m@perlmeister.com> and Kevin Goess <cpan@goess.org>.\n\nThis library is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Please contribute patches to the project on Github:\n\nhttp://github.com/mschilli/log4perl\n\nSend bug reports or requests for enhancements to the authors via our\n\nMAILING LIST (questions, bug reports, suggestions/patches): log4perl-devel@lists.sourceforge.net\n\nAuthors (please contact them via the list above, not directly): Mike Schilli\n<m@perlmeister.com>, Kevin Goess <cpan@goess.org>\n\nContributors (in alphabetical order): Ateeq Altaf, Cory Bennett, Jens Berthold, Jeremy Bopp,\nHutton Davidson, Chris R. Donnelly, Matisse Enzer, Hugh Esco, Anthony Foiani, James FitzGibbon,\nCarl Franks, Dennis Gregorovic, Andy Grundman, Paul Harrington, Alexander Hartmaier David Hull,\nRobert Jacobson, Jason Kohles, Jeff Macdonald, Markus Peter, Brett Rann, Peter Rabbitson, Erik\nSelberg, Aaron Straup Cope, Lars Thegler, David Viner, Mac Yang.\n",
                "subsections": []
            }
        }
    }
}