Andreas Marienborg > Catalyst-Action-RenderView-ErrorHandler > Catalyst::Action::RenderView::ErrorHandler::Action::Log

Download:
Catalyst-Action-RenderView-ErrorHandler-0.0105.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Source  

NAME ^

Catalyst::Action::RenderView::ErrorHandler::Action::Log

DESCRIPTION ^

Really a rather useless example of an ErrorHandler action. It uses catalysts logging facilities to log errors.

SYNOPSIS ^

    # In a configuration somewhere:
    error_handler:
        actions:
            - type: Log
              id: log-error
              level: error
        handlers:
            fallback:
                actions:
                    - log-error

INTERFACE ^

INHERITED ACCESSORS

id

See "id" in Catalyst::Action::RenderView::ErrorHandler::Action

ACCESSORS

level

The log-level this action uses.

IMPLEMENTED METHODS

perform

Implemented as a requirement of Catalyst::Action::RenderView::ErrorHandler::Action.

Will be called with the $context, and basicly calles $context->log->$level for every error.

INHERITED METHODS

meta

Inherited from Moose.

AUTHOR ^

Andreas Marienborg <andreas@startsiden.no>