Steven Haryanto > Log-Any-For-Class-0.23 > Log::Any::For::Class

Download:
Log-Any-For-Class-0.23.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.23   Source  

NAME ^

Log::Any::For::Class - Add logging to class

VERSION ^

version 0.23

SYNOPSIS ^

 use Log::Any::For::Class qw(add_logging_to_class);
 add_logging_to_class(classes => [qw/My::Class My::SubClass/]);
 # now method calls to your classes are logged, by default at level 'trace'

DESCRIPTION ^

Most of the things that apply to Log::Any::For::Package also applies to this module, since this module uses add_logging_to_package() as its backend.

FUNCTIONS ^

add_logging_to_class(%args) -> any

Add logging to class.

Logging will be done using Log::Any.

Currently this function adds logging around method calls, e.g.:

    -> Class::method(...)
    <- Class::method() = RESULT
    ...

Arguments ('*' denotes required arguments):

Return value:

SEE ALSO ^

Log::Any::For::Package

Log::Any::For::DBI, an application of this module.

HOMEPAGE ^

Please visit the project's homepage at https://metacpan.org/release/Log-Any-For-Class.

SOURCE ^

Source repository is at https://github.com/sharyanto/perl-Log-Any-For-Class.

BUGS ^

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Log-Any-For-Class

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR ^

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Steven Haryanto.

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

syntax highlighting: