DOKK / manpages / debian 12 / liblog-handler-perl / Log::Handler::Plugin::YAML.3pm.en
Log::Handler::Plugin::YAML(3pm) User Contributed Perl Documentation Log::Handler::Plugin::YAML(3pm)

Log::Handler::Plugin::YAML - Config loader for YAML.

    use Log::Handler::Plugin::YAML;
    my $config = Log::Handler::Plugin::YAML->get_config( $config_file );

get_config()

Expect the config file name and returns the config as a reference.

    ---
    file:
      mylog:
        debug_mode: 2
        filename: example.log
        fileopen: 1
        maxlevel: info
        minlevel: warn
        mode: append
        newline: 1
        permissions: 0640
        message_layout: %T %H[%P] [%L] %S: %m
        reopen: 1
        timeformat: %b %d %H:%M:%S

    YAML

No exports.

Please report all bugs to <jschulz.cpan(at)bloonix.de>.

If you send me a mail then add Log::Handler into the subject.

Jonny Schulz <jschulz.cpan(at)bloonix.de>.

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.

2022-08-28 perl v5.34.0