MooseX::Q4MLog - Log Data To Q4M
package MyObject; use Moose; with 'MooseX::Q4MLog'; no Moose; sub format_q4mlog { my ($self, %args) = @_; # %args is application dependent # create a hash that can be passed to Queue::Q4M->insert my %q4m_args = ( .... ); return \%q4m_args } my $obj = MyObject->new( q4mlog => { table => 'q_log', # optional connect_info => [ ... ], } ); $obj->log( %whatever );
Given the arguments, you must create a hash that can be passed to Queue::Q4M->insert
To install MooseX::Q4MLog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Q4MLog
CPAN shell
perl -MCPAN -e shell install MooseX::Q4MLog
For more information on module installation, please visit the detailed CPAN module installation guide.