The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.


MooX::Role::HasLogger::Types - Type library that exports the Logger type


  use MooX::Role::HasLogger::Types qw( Logger LoggerAny );


This type library exports the Logger type. This type is a Type::Tiny::Duck instance. It encapsulates the list of methods that a class has to implement to conform to the Logger type. The list contains the log methods trace(), debug(), info(), warn(), error(), fatal, and the corresponding is_ prefixed log level detection methods.

As of version 0.002 the library exports the LoggerAny type that extends the Logger type. The new type contains the additional getter method category(), as well as the f suffixed log methods.


Sven Willenbuecher <>


This software is copyright (c) 2023 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.