Log::Me...:Config(3)
π Log::Message::Config(3) β the perl manpage, but make it make sense π
okay so bestie, welcome to the perl manual page for Log::Message::Config β User Contributed Perl Documentation, no cap. this one's a little config gremlin and honestly? iconic. let's get into it π«Ά
β¨ NAME β¨
Log::Message::Config β the configuration options situation for Log::Message. that's it. that's the whole vibe check π
β¨ SYNOPSIS β¨
here's the whole thing verbatim, don't touch, i'm not retyping it from memory because i would simply get it wrong:
# This module is implicitly used by Log::Message to create a config
# which it uses to log messages.
# For the options you can pass, see the C<Log::Message new()> method.
# Below is a sample of a config file you could use
# comments are denoted by a single '#'
# use a shared stack, or have a private instance?
# if none provided, set to '0',
private = 1
# do not be verbose
verbose = 0
# default tag to set on new items
# if none provided, set to 'NONE'
tag = SOME TAG
# default level to handle items
# if none provided, set to 'log'
level = carp
# extra files to include
# if none provided, no files are auto included
include = mylib.pl
include = ../my/other/lib.pl
# automatically delete items
# when you retrieve them from the stack?
# if none provided, set to '0'
remove = 1
# retrieve errors in chronological order, or not?
# if none provided, set to '1'
chrono = 0
quick translation of what you're looking at, bestie:
#starts a comment β single#only, that's the whole rule πprivate = 1β use a shared stack, or have a private instance? if none provided, it's set to'0'verbose = 0β do not be verbose (lowkey the most relatable line in this entire file)tag = SOME TAGβ default tag to set on new items. if none provided, set to'NONE'level = carpβ default level to handle items. if none provided, set to'log'(note the sample sayscarp, the default islog, both facts, don't @ me)include = mylib.plandinclude = ../my/other/lib.plβ extra files to include. if none provided, no files are auto included π¦remove = 1β automatically delete items when you retrieve them from the stack? if none provided, set to'0'chrono = 0β retrieve errors in chronological order, or not? if none provided, set to'1'
β¨ DESCRIPTION β¨
Log::Message::Config provides a standardized config object for Log::Message objects. slay, standardized π
it can either read options as perl arguments, or as a config file. that's the main character energy right there β two whole ways to do the thing π
for more info on what arguments are valid, go read the Log::Message manpage. and for an example config file you can actually use, the Synopsis above has you covered, periodt.
β¨ SEE ALSO β¨
Log::MessageLog::Message::ItemLog::Message::Handlers
(the whole friend group, orbiting each other, love that for them πͺ)
β¨ AUTHOR β¨
this module by Jos Boumans <kane@cpan.org>. π
Acknowledgements
thanks to Ann Barcomb for her suggestions. π«Ά
β¨ COPYRIGHT β¨
this module is copyright (c) 2002 Jos Boumans <kane@cpan.org>. All rights reserved.
this library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
okay so technically that last bit means it's free software β redistribute and/or modify under the same terms as Perl itself. not a free-for-all, the same terms. read them. respectfully. π
and that's the page!! πβ¨ this came from perl v5.42.0, dated 2014-07-27, and honestly it's giving vintage but make it cute. mwah, go configure something π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Log-Message 0.08-bp160.1.2 Β· Artistic-1.0 or GPL-1.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms