The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catalyst::TraitFor::Log::Audio - Audible debug messages for Catalyst.

VERSION

Version 0.01

SYNOPSIS

In MyApp.pm, after calling __PACKAGE__setup():

    Moose::Util::apply_all_roles(MyApp->log, 'Catalyst::TraitFor::Log::Audio');

In your shell environment:

    SPEAK=1, or export SPEAK=1

In your controllers thereafter:

    $c->log->speak("The value of foo is $foo");

DESCRIPTION

Very simple role for Catalyst::Log that enables debug output to go to OS X's 'say' command via $c->log->speak();

At the moment, as computers are fast - multiple speaks will pile up. I will fix this soon, so they queue. May also work with tonal debugging in the future. Now uses say on darwin/OS X, and espeak on Linux.

This module shows the potential and handiness of roles for Catalyst.

Requires Catalyst (CataMoose) 5.8+

speak

Given text as an argument, send it to OS X's say(1), or Linux's espeak command.

SEE ALSO

Catalyst::Log, Moose::Role

BUGS

SUPPORT

CONTRIBUTORS

AUTHOR

Russell Jurney, C << <rjurney at cloudstenography.com> >>

COPYRIGHT & LICENSE

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