NAME

Locale::TextDomain::OO::Role::Logger - Provides a logger method

$Id: Logger.pm 413 2013-10-27 13:12:20Z steffenw $

$HeadURL: svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/module/trunk/lib/Locale/TextDomain/OO/Role/Logger.pm $

VERSION

1.000

DESCRIPTION

This module provides a logger method for for Locale::TextDomain:OO.

SYNOPSIS

require Locale::TextDomain::OO;

my $loc = Locale::TextDomain::OO->new(
    logger => sub {
    },
    ...
);

SUBROUTINES/METHODS

method logger

Store logger code to get some information what lexicon is used or why the translation process is using a fallback.

$log->logger(
    sub {
        my $message = shift;
        ...
        return;
    },
);

get back

$code_ref_or_undef = $self->logger;

EXAMPLE

Inside of this distribution is a directory named example. Run this *.pl files.

DIAGNOSTICS

nothing

CONFIGURATION AND ENVIRONMENT

none

DEPENDENCIES

Moo::Role

MooX::Types::MooseLike::Base

namespace::autoclean

INCOMPATIBILITIES

not known

BUGS AND LIMITATIONS

none

SEE ALSO

Locale::TextDoamin::OO

AUTHOR

Steffen Winkler

LICENSE AND COPYRIGHT

Copyright (c) 2013, Steffen Winkler <steffenw at cpan.org>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.