{
    "content": [
        {
            "type": "text",
            "text": "# Log::Log4perl::Appender::TestBuffer (perldoc)\n\n## NAME\n\nLog::Log4perl::Appender::TestBuffer - Appender class for testing\n\n## SYNOPSIS\n\nuse Log::Log4perl::Appender::TestBuffer;\nmy $appender = Log::Log4perl::Appender::TestBuffer->new(\nname      => 'mybuffer',\n);\n# Append to the buffer\n$appender->log(\nlevel =  > 'alert',\nmessage => \"I'm searching the city for sci-fi wasabi\\n\"\n);\n# Retrieve the result\nmy $result = $appender->buffer();\n# Clear the buffer to the empty string\n$appender->clear();\n\n## DESCRIPTION\n\nThis class is used for internal testing of \"Log::Log4perl\". It is a \"Log::Dispatch\"-style\nappender, which writes to a buffer in memory, from where actual results can be easily retrieved\nlater to compare with expected results.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **SEE ALSO**\n- **LICENSE**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Log::Log4perl::Appender::TestBuffer",
        "section": "",
        "mode": "perldoc",
        "summary": "Log::Log4perl::Appender::TestBuffer - Appender class for testing",
        "synopsis": "use Log::Log4perl::Appender::TestBuffer;\nmy $appender = Log::Log4perl::Appender::TestBuffer->new(\nname      => 'mybuffer',\n);\n# Append to the buffer\n$appender->log(\nlevel =  > 'alert',\nmessage => \"I'm searching the city for sci-fi wasabi\\n\"\n);\n# Retrieve the result\nmy $result = $appender->buffer();\n# Clear the buffer to the empty string\n$appender->clear();",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 18,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 1,
                "subsections": []
            },
            {
                "name": "LICENSE",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 17,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Log::Log4perl::Appender::TestBuffer - Appender class for testing\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use Log::Log4perl::Appender::TestBuffer;\n\nmy $appender = Log::Log4perl::Appender::TestBuffer->new(\nname      => 'mybuffer',\n);\n\n# Append to the buffer\n$appender->log(\nlevel =  > 'alert',\nmessage => \"I'm searching the city for sci-fi wasabi\\n\"\n);\n\n# Retrieve the result\nmy $result = $appender->buffer();\n\n# Clear the buffer to the empty string\n$appender->clear();\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This class is used for internal testing of \"Log::Log4perl\". It is a \"Log::Dispatch\"-style\nappender, which writes to a buffer in memory, from where actual results can be easily retrieved\nlater to compare with expected results.\n\nEvery buffer created is stored in an internal global array, and can later be referenced by name:\n\nmy $app = Log::Log4perl::Appender::TestBuffer->byname(\"mybuffer\");\n\nretrieves the appender object of a previously created buffer \"mybuffer\". To reset this global\narray and have it forget all of the previously created testbuffer appenders (external references\nto those appenders nonwithstanding), use\n\nLog::Log4perl::Appender::TestBuffer->reset();\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "",
                "subsections": []
            },
            "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": []
            }
        }
    }
}