MooseX::Types::LogAny - Moose Types for Log::Any
version 0.001001
use Moose; use Class::Load 0.20 'load_class'; use MooseX::Types::LogAny qw( LogAny ); has log => ( isa => LogAny, is => 'ro', lazy => 1, default => sub { load_class('Log::Any')->get_logger }, );
The motivation behind this modules is that Log::Any::Adapter::Null does not inherit from Log::Any::Adapter::Base which all of the other adapters do. Moose will not allow a type union of undefined types unless they are Moose classes. This module allows you to simply use the LogAny type which has done the union for you.
Type union of LogAnyNull and LogAnyBase
Class Log::Any::Adapter::Null
Class Log::Any::Adapter::Base
Development sponsored by HostGator.com
Please report any bugs or feature requests on the bugtracker website https://github.com/xenoterracide/moosex-types-logany/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Caleb Cushing <xenoterracide@gmail.com>
This software is Copyright (c) 2013 by Caleb Cushing.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install MooseX::Types::LogAny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Types::LogAny
CPAN shell
perl -MCPAN -e shell install MooseX::Types::LogAny
For more information on module installation, please visit the detailed CPAN module installation guide.