{
    "mode": "info",
    "parameter": "Log::Dispatch::Screen",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/info/Log%3A%3ADispatch%3A%3AScreen/json",
    "generated": "2026-07-05T13:14:20Z",
    "synopsis": "use Log::Dispatch;\nmy $log = Log::Dispatch->new(\noutputs => [\n[\n'Screen',\nminlevel => 'debug',\nstderr    => 1,\nnewline   => 1\n]\n],\n);\n$log->alert(\"I'm searching the city for sci-fi wasabi\");",
    "sections": {
        "Log::Dispatch::Screen(User Contributed Perl DocumentLog::Dispatch::Screen(3pm)": {
            "content": "",
            "subsections": []
        },
        "NAME": {
            "content": "Log::Dispatch::Screen - Object for logging to the screen\n",
            "subsections": []
        },
        "VERSION": {
            "content": "version 2.70\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use Log::Dispatch;\n\nmy $log = Log::Dispatch->new(\noutputs => [\n[\n'Screen',\nminlevel => 'debug',\nstderr    => 1,\nnewline   => 1\n]\n],\n);\n\n$log->alert(\"I'm searching the city for sci-fi wasabi\");\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module provides an object for logging to the screen (really\n\"STDOUT\" or \"STDERR\").\n\nNote that a newline will not be added automatically at the end of a\nmessage by default. To do that, pass \"newline => 1\".\n\nThe handle will be autoflushed, but this module opens it's own handle\nto fd 1 or 2 instead of using the global \"STDOUT\" or \"STDERR\".\n",
            "subsections": []
        },
        "CONSTRUCTOR": {
            "content": "The constructor takes the following parameters in addition to the\nstandard parameters documented in Log::Dispatch::Output:\n\no   stderr (0 or 1)\n\nIndicates whether or not logging information should go to \"STDERR\".\nIf false, logging information is printed to \"STDOUT\" instead.\n\nThis defaults to true.\n\no   utf8 (0 or 1)\n\nIf this is true, then the output uses \"binmode\" to apply the\n\":encoding(UTF-8)\" layer to the relevant handle for output. This\nwill not affect \"STDOUT\" or \"STDERR\" in other parts of your code.\n\nThis defaults to false.\n",
            "subsections": []
        },
        "SUPPORT": {
            "content": "Bugs may be submitted at\n<https://github.com/houseabsolute/Log-Dispatch/issues>.\n\nI am also usually active on IRC as 'autarch' on \"irc://irc.perl.org\".\n",
            "subsections": []
        },
        "SOURCE": {
            "content": "The source code repository for Log-Dispatch can be found at\n<https://github.com/houseabsolute/Log-Dispatch>.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Dave Rolsky <autarch@urth.org>\n",
            "subsections": []
        },
        "COPYRIGHT AND LICENSE": {
            "content": "This software is Copyright (c) 2020 by Dave Rolsky.\n\nThis is free software, licensed under:\n\nThe Artistic License 2.0 (GPL Compatible)\n\nThe full text of the license can be found in the LICENSE file included\nwith this distribution.\n\nperl v5.30.3                      2020-07-23        Log::Dispatch::Screen(3pm)",
            "subsections": []
        }
    },
    "summary": "Log::Dispatch::Screen - Object for logging to the screen",
    "flags": [],
    "examples": [],
    "see_also": []
}