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 to STDERR. if false, logging information is printed to STDOUT instead. 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, STDOUT or STDERR, 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 πŸ‘‘πŸ’Œ

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