Permalink
Browse files

Use Log::Dispatch Screen output for loggin - produces better output t…

…han Catalyst
  • Loading branch information...
1 parent 08f9805 commit 14f7251cce9706976786d488b87efde3552c0bde @autarch autarch committed Mar 16, 2012
Showing with 8 additions and 1 deletion.
  1. +1 −1 bin/vg-log-monitor
  2. +7 −0 lib/VegGuide/Config.pm
View
@@ -72,7 +72,7 @@ sub _on_read_callback {
next if _skip($line);
- if ( $line =~ /^\Q[error]\E\s+{/ ) {
+ if ( $line =~ /^{/ ) {
$in_record = 1;
$record .= '{';
}
View
@@ -34,6 +34,7 @@ use Sys::Hostname qw( hostname );
+VegGuide::Plugin::User
Cache
Cache::Store::FastMmap
+ Log::Dispatch
RedirectAndDetach
SubRequest
);
@@ -163,6 +164,12 @@ sub AlzaboRootDir {
},
dbi => { user => 'root' },
+
+ 'Log::Dispatch' => {
+ class => 'Screen',
+ name => 'Screen',
+ min_level => 'warn',
+ },
);
$BaseConfig{root} = __PACKAGE__->ShareDir();

0 comments on commit 14f7251

Please sign in to comment.