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.
Logger
trace()
debug()
info()
warn()
error()
fatal
is_
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.
0.002
LoggerAny
category()
f
Sven Willenbuecher <sven.willenbuecher@gmx.de>
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.
To install MooX::Role::HasLogger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooX::Role::HasLogger
CPAN shell
perl -MCPAN -e shell install MooX::Role::HasLogger
For more information on module installation, please visit the detailed CPAN module installation guide.