The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Helix::Driver::Log - Helix Framework generic log driver.

SYNOPSIS

Example log driver:

    package MyApp::Driver::Log;
    use base qw/Helix::Driver::Log/;

    sub notice
    {
        my ($self, $msg) = @_;
        throw HXError::Driver::Log::Open("This is just an example!");
    }

    sub warning
    {
        my ($self, $msg) = @_;
        throw HXError::Driver::Log::Open("This is just an example!");
    }

    sub error
    {
        my ($self, $msg) = @_;
        throw HXError::Driver::Log::Open("This is just an example!");
    }

DESCRIPTION

The Helix::Driver::Log is a generic log driver for Helix Framework. It declares some functions that are common for all driver types and some abstract methods, that must be overloaded in ancestor classes. All log drivers should subclass this package.

METHODS

new()

Class constructor.

open()

Opens log handle. Abstract method, should be overloaded by the ancestor class.

close()

Closes log handle. Abstract method, should be overloaded by the ancestor class.

notice($msg)

Log a notice message $msg. Abstract method, should be overloaded by the ancestor class.

warning($msg)

Log a warning message $msg. Abstract method, should be overloaded by the ancestor class.

error($msg)

Log an error message $msg. Abstract method, should be overloaded by the ancestor class.

SEE ALSO

Helix, Helix::Driver::Log::Exceptions

LICENSE

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

AUTHOR

Anton Belousov, <abel@cpan.org>

COPYRIGHT

Copyright (c) 2009, Atma 7, http://www.atma7.com