Package: perl-MooseX-Log-Log4perl (0.47-2.32)
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"
Package information
- Homepage
- [http://search.cpan.org/dist/MooseX-Log-Log4perl/]
- License
- Artistic-1.0 or GPL-1.0+
- Downstream package maintainer
- Unknown: not reported in the indexed source
- Source package
- [perl-MooseX-Log-Log4perl]
- Software project
- [perl-MooseX-Log-Log4perl]
Versions and downloads for perl-MooseX-Log-Log4perl
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.47-2.32tumbleweed / oss | noarchopenSUSE Tumbleweed · OSS · multi-architecture | 19 KiB | 20 KiB | list of files | perl-MooseX-Log-Log4perl-0.47-2.32.noarch.rpm |
About these downloads
Each row is recorded package-index metadata for one version, architecture, suite, and repository. Names, URLs, and sizes are source-reported; a link is a potentially mutable retrieval location, not an OpenFactory redistribution claim or proof that OpenFactory retained the artifact bytes.
Dependencies and recommendations for perl-MooseX-Log-Log4perl
dep: perl(:MODULE_COMPAT_5.44.0)
Package not available
dep: perl(Log::Log4perl) (>= 1.13)
Package not available
dep: perl(Moo) (>= 1.000007)
Package not available
rec: perl(Moose) (>= 0.65)
Package not available
Package file paths (10)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib/perl5/vendor_perl/5.44.0/MooseX
- /usr/lib/perl5/vendor_perl/5.44.0/MooseX/Log
- /usr/lib/perl5/vendor_perl/5.44.0/MooseX/Log/Log4perl
- /usr/lib/perl5/vendor_perl/5.44.0/MooseX/Log/Log4perl/Easy.pm
- /usr/lib/perl5/vendor_perl/5.44.0/MooseX/Log/Log4perl.pm
- /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
Field source: openSUSE Tumbleweed OSS
