# Set up some kind of logger use Log::Any::Adapter; Log::Any::Adapter->set( 'SomeAdapter' ); # Make all logged messages uppercase use Log::Any::Plugin; Log::Any::Plugin->add( 'Format', formatter => sub { map { uc } @_ } );
Log::Any::Plugin::Format adds an external formatting subroutine to the current adapter. This subroutine will be injected into all logging methods as an argument pre-processor. The called logging method will receive the list returned by the formatter subroutine as its arguments.
Sets the formatting subroutine. The default subroutine is a no-op.
This plugin adds the following method to your adapter:
Sets or gets the current formatting subroutine history. When used as a getter it returns the existing value; otherwise it returns the logging object.
Log::Any::Plugin
Mojo::Log
José Joaquín Atria (jjatria@cpan.org)
This software is copyright (c) 2017 by José Joaquín Atria.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Log::Any::Plugin::Format, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Any::Plugin::Format
CPAN shell
perl -MCPAN -e shell install Log::Any::Plugin::Format
For more information on module installation, please visit the detailed CPAN module installation guide.