Supply

NAME

Lumberjack::Dispatcher::Supply - Dispatch Lumberjack messages to a Supply.

SYNOPSIS


use Lumberjack;
use Lumberjack::Dispatcher::Supply;

my $dispatcher = Lumberjack::Dispatcher::Supply.new;

$dispatcher.tap(-> $m { # do something with message });

Lumberjack.dispatchers.append: $dispatcher;

DESCRIPTION

This is a very simple dispatcher implementation that dispatches the Lumberjack messages to a Supply, this is provided for the convenience of the Lumberjack::Application::WebSocket, in conveying the messages from the dispatch mechanism to the client connections, but may have a more general use.

METHODS

method new

method new()

This takes the classes and levels parameters that are provided for by Lumberjack::Provider but has no other useful parameters.

method tap

This is a delegate from the underlying Supply that is provided for convenience.

attribute Supply

This is the Supply to which the messages will be emitted.

Lumberjack::Application v0.0.10

A web facility for the Lumberjack logging framework

Authors

  • Jonathan Stowe

License

Artistic-2.0

Dependencies

Lumberjack:ver<0.1.2+>Lumberjack::Message::JSON:ver<0.0.3+>HTTP::UserAgentHTTP::Server::TinyCrustWebSocketJSON::ClassTemplate6

Test Dependencies

Provides

  • Lumberjack::Application
  • Lumberjack::Application::Index
  • Lumberjack::Application::PSGI
  • Lumberjack::Application::WebSocket
  • Lumberjack::Dispatcher::Proxy
  • Lumberjack::Dispatcher::Supply
  • Lumberjack::Template::Provider

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.