Created
March 22, 2012 01:23
-
-
Save throughnothing/2155004 to your computer and use it in GitHub Desktop.
Using Dancer::Logger::ConsoleAggregator in a non web-app contxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use Dancer ':syntax'; | |
use Dancer::Factory::Hook; | |
set logger => 'consoleAggregator'; | |
debug "testing testing 123"; | |
Dancer::Factory::Hook->instance->execute_hooks('after'); | |
debug "test numero dos"; | |
Dancer::Factory::Hook->instance->execute_hooks('after'); | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment