Log::H...General(3pm)
π Log::Handler::Plugin::Config::General(3pm) π
okay bestie so this is a page from the User Contributed Perl Documentation, section 3pm, and it's literally the config loader plugin for Config::General. you're gonna love her β¨
β¨ NAME β¨
Log::Handler::Plugin::Config::General β she's the config loader for Config::General. that's the whole vibe π
πΈ SYNOPSIS πΈ
use Log::Handler::Plugin::Config::General;
my $config = Log::Handler::Plugin::Config::General->get_config( $config_file );
like, that's it. two lines and you're iconic π
π¦ ROUTINES π¦
get_config()
she expects the config file name as her input, and she hands you back the config as a reference. that's the whole deal fr fr π«Ά
π CONFIG STYLE π
here's what the config file actually looks like, so you're not out here guessing:
<file>
<mylog>
fileopen = 1
reopen = 1
permissions = 0640
maxlevel = info
mode = append
timeformat = %b %d %H:%M:%S
debug_mode = 2
filename = example.log
minlevel = warn
message_layout = %T %H[%P] [%L] %S: %m
newline = 1
</mylog>
</file>
nested blocks, key = value energy, very demure, very mindful π
β PREREQUISITES β
Config::General
you need her. no Config::General, no plugin. that's the rule π
π EXPORTS π
No exports. zero. nada. she's not handing out free stuff, she's keeping all of that to herself π
π REPORT BUGS π
pls report all bugs to <jschulz.cpan(at)bloonix.de> π
if you send a mail then add Log::Handler into the subject β otherwise your bug report is gonna be lost in the group chat π
π AUTHOR π
Jonny Schulz <jschulz.cpan(at)bloonix.de>. the icon herself β¨
π COPYRIGHT π
Copyright (C) 2007-2009 by Jonny Schulz. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's a wrap π
this page was living in perl v5.36.0, dated 2022-08-28, and it ate, no cap π¦βπ
π¦ where this page comes from
- ubuntu noble: liblog-handler-perl 0.90-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: liblog-handler-perl 0.90-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: liblog-handler-perl 0.90-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms