Log::H...General(3pm)

πŸ“¦
version 0.90 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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 (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