NAME MooX::Role::HasLogger - Moo role that provides a logger attribute DESCRIPTION This "Moo::Role based" role provides a "logger" attribute to the consuming class. The attribute is read-only and its value is grabbed lazily. The type library "MooX::Role::HasLogger::Types" exports the "Logger" type that defines the interface of the attribute. The "build_logger()" builder method returns a "Log::Any" logger object with the consuming class as its category. INSTALLATION To install this module, use your preferred CPAN client. If this is "cpanm" then run the command cpanm MooX::Role::HasLogger DOCUMENTATION After the installation, you can find further documentation using the commands: perldoc MooX::Role::HasLogger perldoc MooX::Role::HasLogger::Types DEVELOPMENT After the download of the source code, you have to install the module dependencies first. The dependencies are described in a "cpanfile". It follows the "configure" step that creates a "Makefile" perl Makefile.PL You may explicitly trigger the "build" step, calling make before executing all test scripts make test # in lexicographic order prove t # in random order The "RELEASE_TESTING" flag enables the release testing context. COPYRIGHT AND LICENSE This software is copyright (c) 2023-2026 by Sven Willenbuecher. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.