Skip to content

Instantly share code, notes, and snippets.

@throughnothing
Created March 22, 2012 01:23
Show Gist options
  • Save throughnothing/2155004 to your computer and use it in GitHub Desktop.
Save throughnothing/2155004 to your computer and use it in GitHub Desktop.
Using Dancer::Logger::ConsoleAggregator in a non web-app contxt
#!/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