{
    "mode": "perldoc",
    "parameter": "Log::Dispatch::Screen",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Log%3A%3ADispatch%3A%3AScreen/json",
    "generated": "2026-06-14T00:51:15Z",
    "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": {
        "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 \"STDOUT\" or \"STDERR\").\n\nNote that a newline will *not* be added automatically at the end of a message by default. To do\nthat, pass \"newline => 1\".\n\nThe handle will be autoflushed, but this module opens it's own handle to fd 1 or 2 instead of\nusing the global \"STDOUT\" or \"STDERR\".\n",
            "subsections": []
        },
        "CONSTRUCTOR": {
            "content": "The constructor takes the following parameters in addition to the standard parameters documented\nin Log::Dispatch::Output:\n\n*   stderr (0 or 1)\n\nIndicates whether or not logging information should go to \"STDERR\". If false, logging\ninformation is printed to \"STDOUT\" instead.\n\nThis defaults to true.\n\n*   utf8 (0 or 1)\n\nIf this is true, then the output uses \"binmode\" to apply the \":encoding(UTF-8)\" layer to the\nrelevant handle for output. This will not affect \"STDOUT\" or \"STDERR\" in other parts of your\ncode.\n\nThis defaults to false.\n",
            "subsections": []
        },
        "SUPPORT": {
            "content": "Bugs may be submitted at <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 with this distribution.\n",
            "subsections": []
        }
    },
    "summary": "Log::Dispatch::Screen - Object for logging to the screen",
    "flags": [],
    "examples": [],
    "see_also": []
}