| 1 | use strict; | ||
| 2 | use warnings; | ||
| 3 | |||
| 4 | package Bot::Net::Object; | ||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | Bot::Net::Object - facilties common to many Bot::Net objects | ||
| 9 | |||
| 10 | =head1 SYNOPSIS | ||
| 11 | |||
| 12 | my $log = $self->log; | ||
| 13 | |||
| 14 | =head1 DESCRIPTION | ||
| 15 | |||
| 16 | This provides a set of common facilities to all L<Bot::Net> components. | ||
| 17 | |||
| 18 | =head1 METHODS | ||
| 19 | |||
| 20 | =head2 log | ||
| 21 | |||
| 22 | Returns a logger appropriate for the current component. This is the preferred way to retrieve a logger for logging. | ||
| 23 | |||
| 24 | =cut | ||
| 25 | |||
| 26 | sub log { | ||
| 27 | my $self = shift; | ||
| 28 | my $proto = ref $self || $self; | ||
| 29 | |||
| 30 | return Bot::Net->log($proto); | ||
| 31 | } | ||
| 32 | |||
| 33 | =head1 AUTHORS | ||
| 34 | |||
| 35 | Andrew Sterling Hanenkamp C<< <hanenkamp@cpan.org> >> | ||
| 36 | |||
| 37 | =head1 COPYRIGHT AND LICENSE | ||
| 38 | |||
| 39 | Copyright 2007 Boomer Consulting, Inc. All Rights Reserved. | ||
| 40 | |||
| 41 | This program is free software and may be modified and distributed under the same terms as Perl itself. | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | 1; |