Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

perl-MooseX-Log-Log4perl-0.47-bp156.3.1 RPM for noarch

From OpenSuSE Leap 15.6 for noarch

Name: perl-MooseX-Log-Log4perl Distribution: SUSE Linux Enterprise 15 SP6
Version: 0.47 Vendor: openSUSE
Release: bp156.3.1 Build date: Sat Jul 22 11:54:23 2023
Group: Development/Libraries/Perl Build host: sheep87
Size: 20855 Source RPM: perl-MooseX-Log-Log4perl-0.47-bp156.3.1.src.rpm
Packager: https://bugs.opensuse.org
Url: http://search.cpan.org/dist/MooseX-Log-Log4perl/
Summary: Logging Role for Moose based on Log::Log4perl
A logging role building a very lightweight wrapper to Log::Log4perl for use
with your Moose or Moo classes. The initialization of the Log4perl instance
must be performed prior to logging the first log message. Otherwise the
default initialization will happen, probably not doing the things you
expect.

For compatibility the 'logger' attribute can be accessed to use a common
interface for application logging.

Using the logger within a class is as simple as consuming a role:

    package MyClass;
    use Moose;
    with 'MooseX::Log::Log4perl';

    sub dummy {
        my $self = shift;
        $self->log->info("Dummy log entry");
    }

The logger needs to be setup before using the logger, which could happen in
the main application:

    package main;
    use Log::Log4perl qw(:easy);
    use MyClass;

    BEGIN { Log::Log4perl->easy_init() };

    my $myclass = MyClass->new();
    $myclass->log->info("In my class"); # Access the log of the object
    $myclass->dummy;                    # Will log "Dummy log entry"

Provides

Requires

License

Artistic-1.0 or GPL-1.0+

Changelog

* Tue Oct 03 2017 coolo@suse.com
  - patch the Makefile to build with perl 5.26
* Wed Dec 09 2015 coolo@suse.com
  - updated to 0.47
    see /usr/share/doc/packages/perl-MooseX-Log-Log4perl/Changes
    * RT#82888: Refactor to use Moo instead of Any::Moose (Alexander Hartmaier)
* Wed Jun 05 2013 coolo@suse.com
  - updated to 0.46
    * RT#77451: Spelling mistake in Easy.pm (thanks gregoa@debian.org)
    * RT#77783: Added tests (03inheritence) to showcase expected category in logging
    * RT#72596: META file needs regenerating, should be fixed now
    * Correct some dist stuff (copyright, license, bundled Module::Install)
    * Fix CPAN tester build issue for Tie::Hash::NamedCapture (probably caused by "use English")
    * Support special 'append' prefix for category (Andreas Marienborg)
* Tue Dec 20 2011 coolo@suse.com
  - update to 0.43
    * Change to use Any::Moose to also support Mouse environemnt
    * Documentation improvements for Any::Moose
* Fri Apr 01 2011 coolo@novell.com
  - initial package 0.42
    * created by cpanspec 1.78.03

Files

/usr/lib/perl5/vendor_perl/5.26.1/MooseX
/usr/lib/perl5/vendor_perl/5.26.1/MooseX/Log
/usr/lib/perl5/vendor_perl/5.26.1/MooseX/Log/Log4perl
/usr/lib/perl5/vendor_perl/5.26.1/MooseX/Log/Log4perl.pm
/usr/lib/perl5/vendor_perl/5.26.1/MooseX/Log/Log4perl/Easy.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-MooseX-Log-Log4perl
/usr/share/doc/packages/perl-MooseX-Log-Log4perl/Changes
/usr/share/doc/packages/perl-MooseX-Log-Log4perl/README
/usr/share/man/man3/MooseX::Log::Log4perl.3pm.gz
/usr/share/man/man3/MooseX::Log::Log4perl::Easy.3pm.gz


Generated by rpm2html 1.8.1

Fabrice Bellet, Tue Jul 9 19:58:50 2024