Skip to content

It aggregates all log messages of a single request into a single line

Notifications You must be signed in to change notification settings

dsog/Dancer-Logger-ConsoleAggregator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Dancer::Logger::ConsoleAggregator - Dancer Console Logger that aggregates each requests logs to 1 line.

VERSION

version 0.007

SYNOPSIS

This module will aggregate all logging done for each request into one line in the output. It does this by queueing everything up and adding an after hook that calls the flush function, which causes the logger to output the log line for the current request.

In your config.yml simply put:

logger: 'consoleAggregator'

To use this log module. Then you can debug like this:

debug { field1 => "data" };
debug to_json({ field2 => "data" });
debug "Raw Data";

And this module will log something like this:

{ "field1" : "data", "field2" : "data", "messages" : [ "Raw Data" ] }

All on one line.

AUTHORS

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Khaled Hussein.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

About

It aggregates all log messages of a single request into a single line

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages