Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Log::Any adapter for Catalyst::Log - Enables Log::Any logging in Models to output via Catalyst::Log

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 t
Octocat-spinner-32 xt
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Build.PL
Octocat-spinner-32 Changes
Octocat-spinner-32 README
README
NAME
    Log::Any::Adapter::Catalyst - Enable error and status logging in
    Catalyst Models via Log::Any

SYNOPSIS
    In a Catalyst Model, View, etc (anywhere you don't have $c):

        use Log::Any qw($log);

        $log->debug( "Sent to $c->log() if called from a Catalyst model" );

    In a your main Catalyst module (MyApp.pm):

        use Log::Any::Adapter;

        Log::Any::Adapter->set('Catalyst', logger => __PACKAGE__->log);

DESCRIPTION
    This Log::Any adapter uses Catalyst::Log for logging. Catalyst::Log must
    be initialized before calling *set*, but Catalyst takes care of that for
    you. There are no parameters.

LOG LEVEL TRANSLATION
    Log levels are translated from Log::Any to Catalyst::Log as follows:

        trace -> debug
        debug -> debug
        info (inform) -> info
        notice -> info
        warning (warn) -> warn
        error (err) -> error
        critical (crit, fatal) -> fatal
        alert -> fatal
        emergency -> fatal

SEE ALSO
    Log::Any, Log::Any::Adapter, Catalyst, Catalyst::Log

AUTHOR
    Mark Grimes

COPYRIGHT & LICENSE
    Copyright (C) 2011 Mark Grimes, all rights reserved.

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

Something went wrong with that request. Please try again.