Web::ChromeLogger::Null - Dummy of Web::ChromeLogger
use Web::ChromeLogger::Null; get '/', sub { my $logger = Web::ChromeLogger::Null->new(); $logger->info('hey!'); # NOP my $html = render_html(); return [ 200, ['X-ChromeLogger-Data' => $logger->finalize()], # Throw exception $html, ]; };
Web::ChromeLogger::Null is a dummy of Web::ChromeLogger.
Web::ChromeLogger
This class provides methods that don't work anything.
my $logger = Web::ChromeLogger::Null->new()
Returns instance of Web::ChromeLogger::Null.
$logger->finalize()
Always throws exception.
And other provided methods are the same as Web::ChromeLogger, but they don't work anything.
Copyright (C) Tokuhiro Matsuno.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Web::ChromeLogger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Web::ChromeLogger
CPAN shell
perl -MCPAN -e shell install Web::ChromeLogger
For more information on module installation, please visit the detailed CPAN module installation guide.