![]() |
![]()
| ![]() |
![]()
NAMEDevel::Events::Handler::Log::Memory - An optional base role for event generators. VERSIONversion 0.10 SYNOPSISuse Devel::Events::Handler::Log::Memory; my $log = Devel::Events::Handler::Log::Memory->new(); Some::Geneator->new( handler => $log ); DESCRIPTIONThis convenience role provides a basic "send_event" method, useful for implementing generators. ATTRIBUTESMETHODS
CAVEATSIf any references are present in the event data then they will be preserved till the log is clear. This may cause leaks. To overcome this problem use Devel::Events::Filter::Stringify. It will not allow overloading unless asked to, so it's safe to use without side effects. TODOAdd an option to always hash all the event data for convenience. Make "grep" and "limit" into exportable functions, too. SUPPORTBugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-Events> (or bug-Devel-Events@rt.cpan.org <mailto:bug-Devel-Events@rt.cpan.org>). AUTHORיובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org> COPYRIGHT AND LICENCEThis software is copyright (c) 2007 by יובל קוג'מן (Yuval Kogman). This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
|