The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

SYNOPSIS

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

DESCRIPTION

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.

AUTHOR

Sven Willenbuecher <sven.willenbuecher@gmx.de>

COPYRIGHT AND LICENSE

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.