jonswar / perl-log-any-adapter-dispatch Goto Github PK
View Code? Open in Web Editor NEWAdapter to use Log::Dispatch with Log::Any
Adapter to use Log::Dispatch with Log::Any
See http://www.cpantesters.org/cpan/report/206238d6-f1c6-11e6-bb94-6bc77d6e3ab9 for example:
# Testing Log::Any::Adapter::Dispatch 0.06, Perl 5.024001, /tmp/basesmoker-reloperl-9QJ2/bin/perl
t/00-load.t ... ok
found extra parameters: [category] at /home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.24.1/fae6/lib/site_perl/5.24.1/Exception/Class/Base.pm line 88.
Exception::Class::Base::throw("Params::ValidationCompiler::Exception::Named::Extra", "message", "found extra parameters: [category]", "parameters", ARRAY(0x56080a23f5f0)) called at (eval 141)[/home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.24.1/fae6/lib/site_perl/5.24.1/Eval/Closure.pm:149] line 98
Eval::Closure::Sandbox_115::__ANON__[(eval 141)[/home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.24.1/fae6/lib/site_perl/5.24.1/Eval/Closure.pm:149]:104]("outputs", ARRAY(0x56080a6e68f0), "category", "main") called at /home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.24.1/fae6/lib/site_perl/5.24.1/Log/Dispatch.pm line 52
Log::Dispatch::new("Log::Dispatch", "outputs", ARRAY(0x56080a6e68f0), "category", "main") called at /tmp/loop_over_bdir-16101-czJM5C/Log-Any-Adapter-Dispatch-0.06-0/blib/lib/Log/Any/Adapter/Dispatch.pm line 15
Log::Any::Adapter::Dispatch::init(Log::Any::Adapter::Dispatch=HASH(0x56080a6e6b00), "outputs", ARRAY(0x56080a6e68f0), "category", "main") called at /home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.24.1/fae6/lib/site_perl/5.24.1/Log/Any/Adapter/Base.pm line 16
Log::Any::Adapter::Base::new("Log::Any::Adapter::Dispatch", "outputs", ARRAY(0x56080a6e68f0), "category", "main") called at /home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.24.1/fae6/lib/site_perl/5.24.1/Log/Any/Manager.pm line 72
Log::Any::Manager::_new_adapter_for_entry(Log::Any::Manager=HASH(0x56080978f100), HASH(0x56080a6e6ae8), "main") called at /home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.24.1/fae6/lib/site_perl/5.24.1/Log/Any/Manager.pm line 171
Log::Any::Manager::_reselect_matching_adapters(Log::Any::Manager=HASH(0x56080978f100), qr(.*)) called at /home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.24.1/fae6/lib/site_perl/5.24.1/Log/Any/Manager.pm line 122
Log::Any::Manager::set(Log::Any::Manager=HASH(0x56080978f100), "Dispatch", "outputs", ARRAY(0x56080a6e68f0)) called at /home/sand/src/perl/repoperls/installed-perls/host/k93x64sid/v5.24.1/fae6/lib/site_perl/5.24.1/Log/Any/Adapter.pm line 19
Log::Any::Adapter::set("Log::Any::Adapter", "Dispatch", "outputs", ARRAY(0x56080a6e68f0)) called at t/dispatch.t line 62
# Looks like your test exited with 255 before it could output anything.
t/dispatch.t ..
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 56/56 subtests
Test Summary Report
-------------------
t/dispatch.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 56 tests but ran 0.
Files=2, Tests=1, 0 wallclock secs ( 0.02 usr 0.02 sys + 0.27 cusr 0.05 csys = 0.36 CPU)
Result: FAIL
Failed 1/2 test programs. 0/1 subtests failed.
Makefile:779: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
Since Log::Dispatch 2.60, parameters passed to it are checked more thoroughly, and that results in the failure above.
The Log::Dispatch maintainer says that "This really should be fixed in Log::Any::Adapter::Dispatch. It's passing arguments to Log::Dispatch that Log::Dispatch does not, and never did, accept." (houseabsolute/Log-Dispatch#40 (comment))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.