- SEE ALSO
- COPYRIGHT & LICENSE
Catalyst::TraitFor::Log::Audio - Audible debug messages for Catalyst.
In MyApp.pm, after calling __PACKAGE__setup():
In your shell environment:
SPEAK=1, or export SPEAK=1
In your controllers thereafter:
$c->log->speak("The value of foo is $foo");
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+
Given text as an argument, send it to OS X's say(1), or Linux's espeak command.
Russell Jurney, C << <rjurney at cloudstenography.com> >>
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.