{
    "content": [
        {
            "type": "text",
            "text": "# Log::Log4perl::Appender::ScreenColoredLevels (perldoc)\n\n## NAME\n\nLog::Log4perl::Appender::ScreenColoredLevels - Colorize messages according to level\n\n## SYNOPSIS\n\nuse Log::Log4perl qw(:easy);\nLog::Log4perl->init(\\ <<'EOT');\nlog4perl.category = DEBUG, Screen\nlog4perl.appender.Screen = \\\nLog::Log4perl::Appender::ScreenColoredLevels\nlog4perl.appender.Screen.layout = \\\nLog::Log4perl::Layout::PatternLayout\nlog4perl.appender.Screen.layout.ConversionPattern = \\\n%d %F{1} %L> %m %n\nEOT\n# Appears black\nDEBUG \"Debug Message\";\n# Appears green\nINFO  \"Info Message\";\n# Appears blue\nWARN  \"Warn Message\";\n# Appears magenta\nERROR \"Error Message\";\n# Appears red\nFATAL \"Fatal Message\";\n\n## DESCRIPTION\n\nThis appender acts like Log::Log4perl::Appender::Screen, except that it colorizes its output,\nbased on the priority of the message sent.\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::Appender::ScreenColoredLevels",
        "section": "",
        "mode": "perldoc",
        "summary": "Log::Log4perl::Appender::ScreenColoredLevels - Colorize messages according to level",
        "synopsis": "use Log::Log4perl qw(:easy);\nLog::Log4perl->init(\\ <<'EOT');\nlog4perl.category = DEBUG, Screen\nlog4perl.appender.Screen = \\\nLog::Log4perl::Appender::ScreenColoredLevels\nlog4perl.appender.Screen.layout = \\\nLog::Log4perl::Layout::PatternLayout\nlog4perl.appender.Screen.layout.ConversionPattern = \\\n%d %F{1} %L> %m %n\nEOT\n# Appears black\nDEBUG \"Debug Message\";\n# Appears green\nINFO  \"Info Message\";\n# Appears blue\nWARN  \"Warn Message\";\n# Appears magenta\nERROR \"Error Message\";\n# Appears red\nFATAL \"Fatal Message\";",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 27,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 61,
                "subsections": [
                    {
                        "name": "Using ScreenColoredLevels on Windows",
                        "lines": 7
                    }
                ]
            },
            {
                "name": "LICENSE",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 17,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Log::Log4perl::Appender::ScreenColoredLevels - Colorize messages according to level\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Log::Log4perl qw(:easy);\n\nLog::Log4perl->init(\\ <<'EOT');\nlog4perl.category = DEBUG, Screen\nlog4perl.appender.Screen = \\\nLog::Log4perl::Appender::ScreenColoredLevels\nlog4perl.appender.Screen.layout = \\\nLog::Log4perl::Layout::PatternLayout\nlog4perl.appender.Screen.layout.ConversionPattern = \\\n%d %F{1} %L> %m %n\nEOT\n\n# Appears black\nDEBUG \"Debug Message\";\n\n# Appears green\nINFO  \"Info Message\";\n\n# Appears blue\nWARN  \"Warn Message\";\n\n# Appears magenta\nERROR \"Error Message\";\n\n# Appears red\nFATAL \"Fatal Message\";\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This appender acts like Log::Log4perl::Appender::Screen, except that it colorizes its output,\nbased on the priority of the message sent.\n\nYou can configure the colors and attributes used for the different levels, by specifying them in\nyour configuration:\n\nlog4perl.appender.Screen.color.TRACE=cyan\nlog4perl.appender.Screen.color.DEBUG=bold blue\n\nYou can also specify nothing, to indicate that level should not have coloring applied, which\nmeans the text will be whatever the default color for your terminal is. This is the default for\ndebug messages.\n\nlog4perl.appender.Screen.color.DEBUG=\n\nYou can use any attribute supported by Term::ANSIColor as a configuration option.\n\nlog4perl.appender.Screen.color.FATAL=\\\nbold underline blink red onwhite\n\nThe commonly used colors and attributes are:\n\nattributes\nBOLD, DARK, UNDERLINE, UNDERSCORE, BLINK\n\ncolors\nBLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE\n\nbackground colors\nONBLACK, ONRED, ONGREEN, ONYELLOW, ONBLUE, ONMAGENTA, ONCYAN, ONWHITE\n\nSee Term::ANSIColor for a complete list, and information on which are supported by various\ncommon terminal emulators.\n\nThe default values for these options are:\n\nTrace\nYellow\n\nDebug\nNone (whatever the terminal default is)\n\nInfo\nGreen\n\nWarn\nBlue\n\nError\nMagenta\n\nFatal\nRed\n\nThe constructor \"new()\" takes an optional parameter \"stderr\", if set to a true value, the\nappender will log to STDERR. If \"stderr\" is set to a false value, it will log to STDOUT. The\ndefault setting for \"stderr\" is 1, so messages will be logged to STDERR by default. The\nconstructor can also take an optional parameter \"color\", whose value is a hashref of color\nconfiguration options, any levels that are not included in the hashref will be set to their\ndefault values.\n",
                "subsections": [
                    {
                        "name": "Using ScreenColoredLevels on Windows",
                        "content": "Note that if you're using this appender on Windows, you need to fetch Win32::Console::ANSI from\nCPAN and add\n\nuse Win32::Console::ANSI;\n\nto your script.\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": []
            }
        }
    }
}