Log::Dispatch::ScribeLogging via Facebook's Scribe server software | |
Download |
Log::Dispatch::Scribe Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Jon Schutz
- Publisher web site:
- http://search.cpan.org/~jjschutz/
Log::Dispatch::Scribe Tags
Log::Dispatch::Scribe Description
Logging via Facebook's Scribe server software Log::Dispatch::Scribe is a Perl module that provides a Log::Dispatch style interface to Scribe, and is also fully compatible with Log::Log4perl.Scribe is a server for aggregating log data streamed in real time from a large number of servers. It is designed to be scalable, extensible without client-side modification, and robust to failure of the network or any specific machine. Scribe was developed at Facebook and released as open source.SYNOPSIS use Log::Dispatch::Scribe; my $log = Log::Dispatch::Scribe->new( name => 'scribe', min_level => 'info', host => 'localhost', port => 1463, default_category => 'test', retry_plan_a => 'buffer', retry_plan_b => 'die', ); $log->log(level => 'emergency', message => 'something BAD happened'); $log->log(category => 'system', level => 'emergency', message => 'something BAD happened'); # Or, via Log::Log4perl (using YAML style configuration in this example): log4perl.rootLogger: INFO, Scribe log4perl.appender.Scribe: Log::Dispatch::Scribe log4perl.appender.Scribe.host: localhost log4perl.appender.Scribe.port: 1465 log4perl.appender.Scribe.category: system log4perl.appender.Scribe.layout: Log::Log4perl::Layout::PatternLayout log4perl.appender.Scribe.layout.ConversionPattern: " %m%n" use Log::Log4perl; Log::Log4perl->init('log4perlconfig.yml'); # initialise using config file $log = Log::Log4perl->get_logger('example.usage'); $log->info("..."); # Log an info message via Log::Log4perl $log->log($INFO, "..."); # alternative syntax Requirements: · Perl
Log::Dispatch::Scribe Related Software