Log::Di...::Screen(3)
bestie hii π you just opened Log::Di...::Screen(3) β User Contributed Perl Documentation for Log::Dispatch::Screen β and honestly? highkey it's giving βlogging but make it visible on your actual screen,β no cap. let's go β¨
π NAME π
Log::Dispatch::Screen β Object for logging to the screen. literally an object whose whole job is logging to the screen (and βscreenβ here really means STDOUT or STDERR, okay bestie π₯οΈβ¨).
β¨ VERSION β¨
version 2.71 β that's the version, iconic and periodt π
π SYNOPSIS π
okay so here's the whole setup, copy-paste core β vibe check passed π:
use Log::Dispatch;
my $log = Log::Dispatch->new(
outputs => [
[
'Screen',
min_level => 'debug',
stderr => 1,
newline => 1
]
],
);
$log->alert("I'm searching the city for sci-fi wasabi");
that ate, honestly ππ₯
π¦ DESCRIPTION π¦
this module provides an object for logging to the screen β and by βscreenβ it really means STDOUT or STDERR π₯οΈπ.
big heads-up bestie: a newline will not be added automatically at the end of a message by default β lowkey important. if you want that, pass newline => 1 β yes, that exact thing, fr fr β¨.
πΈ CONSTRUCTOR πΈ
the constructor takes the following parameters in addition to the standard parameters documented in Log::Dispatch::Output β don't forget those, iykyk π«Ά:
stderr(0 or 1) β indicates whether or not logging information should go toSTDERR. if false, logging information is printed toSTDOUTinstead. this defaults to true βutf8(0 or 1) β if this is true, then the output will be encoded using the UTF-8 encoding. if you have already applied an encoding layer to the relevant filehandle,STDOUTorSTDERR, then your output will end up double-encoded if this is true π. this defaults to false β
π SUPPORT π
not me hoping you never need this, but if something's busted, bugs may be submitted at <https://github.com/houseabsolute/Log-Dispatch/issues> β that's the spot ππ
π₯ SOURCE π₯
the source code repository for Log-Dispatch can be found at <https://github.com/houseabsolute/Log-Dispatch> β go peek, bestie, I'm obsessed π₯
π AUTHOR π
Dave Rolsky <autarch@urth.org> β author icon, main character energy ππ
π COPYRIGHT AND LICENSE π
this software is Copyright (c) 2023 by Dave Rolsky.
this is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
the full text of the license can be found in the LICENSE file included with this distribution. periodt ππ
okay that's the page, bestie π«Ά this footer energy: perl v5.42.0, dated 2023-04-21, manual name Log::Di...::Screen(3) β bye and slay π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Log-Dispatch 2.71-bp160.1.2 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms