Toru Yamaguchi > MozRepl-0.06 > MozRepl::Log

Download:
MozRepl-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  10
Open  1
View/Report Bugs
Module Version: 0.01   Source  

NAME ^

MozRepl::Log - MozRepl logging class

VERSION ^

version 0.01

SYNOPSIS ^

    use MozRepl;

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

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

METHODS ^

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 ^

Toru Yamaguchi, <zigorou@cpan.org>

BUGS ^

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 ^

Copyright 2007 Toru Yamaguchi, All Rights Reserved.

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

syntax highlighting: