Dancer::Logger::Spinner - Show a spinner in the console on Dancer log messages!
# in your Dancer app: setting logger => 'spinner'; # or in your Dancer config file: logger: 'spinner'
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
The Dancer Advent Calendar 2010.
Sawyer X <firstname.lastname@example.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.