Dancer::Logger::Spinner - Show a spinner in the console on Dancer log messages!
version 0.02
# in your Dancer app: setting logger => 'spinner'; # or in your Dancer config file: logger: 'spinner'
Et voila!
When using this logger and running your application in the terminal, you will see a text spinner running on each message it gets. If you have a page with a lot of request, and they will come in fast, you'll see the spinner running. If you have an app with very little requests in each page or if it is slow, the spinner will run slowly.
Each request matches another rotation of the spinner.
Sets the spinner's characters and position.
Advanced the spinner onefold by cleaning a terminal line and printing the next spinner position.
Gets a message to log and calls advance_spinner.
advance_spinner
The Dancer Advent Calendar 2010.
Sawyer X <xsawyerx@cpan.org>
This software is copyright (c) 2010 by Sawyer X.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Dancer::Logger::Spinner, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Logger::Spinner
CPAN shell
perl -MCPAN -e shell install Dancer::Logger::Spinner
For more information on module installation, please visit the detailed CPAN module installation guide.