MojoX::Log::Fast - Log::Fast for Mojolicious
This document describes MojoX::Log::Fast version v1.2.0
use MojoX::Log::Fast;
$app->log( MojoX::Log::Fast->new() );
$app->log->config(...);
$app->log->ident(...);
This module provides a Mojo::Log implementation that uses Log::Fast as the underlying log mechanism. It provides Log::Fast methods config(), ident() and all Mojo::Log methods except handle(), path() and format().
Mojo::Log's fatal() processed same as error() because Log::Fast doesn't support that log level.
Log::Fast's NOTICE() level not available because Mojo::Log doesn't support that log level.
$log = MojoX::Log::Fast->new();
$log = MojoX::Log::Fast->new( $logfast );
If Log::Fast instance $logfast doesn't provided then Log::Fast->global() will be used by default.
my $new = $log->context('[extra] [information]');
Construct a new child Mojo::Log::Fast object that will include context information with every log message.
# Log with context
my $log = Mojo::Log::Fast->new;
my $context = $log->context('[17a60115]');
$context->debug('This is a log message with context information');
$context->info('And another');
$log->config( @params );
$log->ident( @params );
Proxy these methods with given @params to Log::Fast instance.
Not compatible with Log::Fast and thus not supported.
Not implemented yet, use much more flexible config() instead.
Let me know if you needs it.
Please report any bugs or feature requests through the issue tracker at https://github.com/powerman/perl-MojoX-Log-Fast/issues. You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for public review and contribution under the terms of the license. Feel free to fork the repository and submit pull requests.
https://github.com/powerman/perl-MojoX-Log-Fast
git clone https://github.com/powerman/perl-MojoX-Log-Fast.git
-
MetaCPAN Search
-
CPAN Ratings
-
AnnoCPAN: Annotated CPAN documentation
-
CPAN Testers Matrix
-
CPANTS: A CPAN Testing Service (Kwalitee)
Alex Efros powerman@cpan.org
This software is Copyright (c) 2013- by Alex Efros powerman@cpan.org.
This is free software, licensed under:
The MIT (X11) License