Bot::Net::Object - facilties common to many Bot::Net objects


Bot-Net documentation Contained in the Bot-Net distribution.

Index


Code Index:

NAME

Top

Bot::Net::Object - facilties common to many Bot::Net objects

SYNOPSIS

Top

  my $log = $self->log;

DESCRIPTION

Top

This provides a set of common facilities to all Bot::Net components.

METHODS

Top

log

Returns a logger appropriate for the current component. This is the preferred way to retrieve a logger for logging.

AUTHORS

Top

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

Top


Bot-Net documentation Contained in the Bot-Net distribution.
use strict;
use warnings;

package Bot::Net::Object;

sub log {
    my $self = shift;
    my $proto = ref $self || $self;

    return Bot::Net->log($proto);
}

1;