Package: perl-Log-Contextual (0.008001-bp156.3.1)
Simple logging interface with a contextual log
Major benefits: * * Efficient The default logging functions take blocks, so if a log level is disabled, the block will not run: log_debug { "the new count in the database is " . $rs->count }; Similarly, the 'D' prefixed methods only 'Dumper' the input if the level is enabled. * * Handy The logging functions return their arguments, so you can stick them in the middle of expressions: for (log_debug { "downloading:\n" . join qq(\n), @_ } @urls) { ... } * * Generic 'Log::Contextual' is an interface for all major loggers. If you log through 'Log::Contextual' you will be able to swap underlying loggers later. * * Powerful 'Log::Contextual' chooses which logger to use based on user defined 'CodeRef's. Normally you don't need to know this, but you can take advantage of it when you need to later. * * Scalable If you just want to add logging to your basic application, start with Log::Contextual::SimpleLogger and then as your needs grow you can switch to Log::Dispatchouli or Log::Dispatch or Log::Log4perl or whatever else. This module is a simple interface to extensible logging. It exists to abstract your logging interface so that logging is as painless as possible, while still allowing you to switch from one logger to another. It is bundled with a really basic logger, Log::Contextual::SimpleLogger, but in general you should use a real logger instead. For something more serious but not overly complicated, try Log::Dispatchouli (see SYNOPSIS for example.)
Package information
- Homepage
- [http://search.cpan.org/dist/Log-Contextual/]
- License
- Artistic-1.0 or GPL-1.0+
- Downstream package maintainer
- Unknown: not reported in the indexed source
- Source package
- [perl-Log-Contextual]
- Software project
- [perl-Log-Contextual]
Versions and downloads for perl-Log-Contextual
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.008001-bp156.3.1leap-15.6 / oss | noarchopenSUSE Leap 15.6 · OSS · multi-architecture | 67 KiB | 123 KiB | list of files | perl-Log-Contextual-0.008001-bp156.3.1.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-Log-Contextual
dep: perl(:MODULE_COMPAT_5.26.1)
Package not available
dep: perl(Data::Dumper::Concise)
Package not available
dep: perl(Exporter::Declare) (>= 0.111)
Package not available
dep: perl(Moo) (>= 1.003)
Package not available
Package file paths (34)
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.26.1/Log
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/Easy
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/Easy/Default.pm
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/Easy/Package.pm
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual.pm
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/Role
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/Role/Router
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/Role/Router/HasLogger.pm
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/Role/Router.pm
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/Role/Router/SetLogger.pm
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/Role/Router/WithLogger.pm
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/Router.pm
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/SimpleLogger.pm
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/TeeLogger.pm
- /usr/lib/perl5/vendor_perl/5.26.1/Log/Contextual/WarnLogger.pm
- /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
- /usr/share/doc/packages/perl-Log-Contextual
- /usr/share/doc/packages/perl-Log-Contextual/Changes
- /usr/share/doc/packages/perl-Log-Contextual/CONTRIBUTING
- /usr/share/doc/packages/perl-Log-Contextual/README
- /usr/share/licenses/perl-Log-Contextual
- /usr/share/licenses/perl-Log-Contextual/LICENSE
- /usr/share/man/man3/Log::Contextual.3pm.gz
- /usr/share/man/man3/Log::Contextual::Easy::Default.3pm.gz
- /usr/share/man/man3/Log::Contextual::Easy::Package.3pm.gz
- /usr/share/man/man3/Log::Contextual::Role::Router.3pm.gz
- /usr/share/man/man3/Log::Contextual::Role::Router::HasLogger.3pm.gz
- /usr/share/man/man3/Log::Contextual::Role::Router::SetLogger.3pm.gz
- /usr/share/man/man3/Log::Contextual::Role::Router::WithLogger.3pm.gz
- /usr/share/man/man3/Log::Contextual::Router.3pm.gz
- /usr/share/man/man3/Log::Contextual::SimpleLogger.3pm.gz
- /usr/share/man/man3/Log::Contextual::TeeLogger.3pm.gz
- /usr/share/man/man3/Log::Contextual::WarnLogger.3pm.gz
Field source: openSUSE Leap 15.6 OSS
