Adam Flott > Thorium-0.510 > Thorium::Roles::Logging

Download:
Thorium-0.510.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.510   Source  

NAME ^

Thorium::Roles::Logging - Adds standard logging to your class

VERSION ^

version 0.510

SYNOPSIS ^

    with 'Thorium::Roles::Logging';

    ...

    $self->log->warn('look out! impending destruction awaits ahead!');

DESCRIPTION ^

Adds one attribute, 'log' to the consuming class, which will instantiate to a Thorium::Log object at first use. Category is automatically set to the class name instantiated under.

AUTHOR ^

Adam Flott <adam@npjh.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by Adam Flott <adam@npjh.com>, CIDC.

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: