MozRepl::Log - MozRepl logging class


MozRepl documentation  | view source Contained in the MozRepl distribution.

Index


NAME

Top

MozRepl::Log - MozRepl logging class

VERSION

Top

version 0.01

SYNOPSIS

Top

    use MozRepl;

    my $repl = MozRepl->new;
    $repl->setup;

    $repl->log->debug("Look! someone on that wall!");

METHODS

Top

new(@levels)

Create instance. If you want to limit log levels, then specify only levels to want to use.

    my $log = MozRepl::Log->new(qw/info error/);

enable($level)

Return whether the specified level is enabled or not.

log($level, $messages)

Logging messege as specified level.

debug($messeage)

Logging message as debug level.

info($messeage)

Logging message as info level.

warn($messeage)

Logging message as warn level.

error($messeage)

Logging message as error level.

fatal($messeage)

Logging message as fatl level.

is_debug()

Return whether the debug level is enabled or not.

is_info()

Return whether the info level is enabled or not.

is_warn()

Return whether the warn level is enabled or not.

is_error()

Return whether the error level is enabled or not.

is_fatal()

Return whether the fatl level is enabled or not.

AUTHOR

Top

Toru Yamaguchi, <zigorou@cpan.org>

BUGS

Top

Please report any bugs or feature requests to bug-mozrepl-log@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Top


MozRepl documentation  | view source Contained in the MozRepl distribution.