PSGI
NAME
Lumberjack::Application::PSGI - Web receiver for Lumberjack messages
SYNOPSIS
use Lumberjack::Application::PSGI;
my &app = Lumberjack::Application::PSGI.new;
# Start listener on port 8898
HTTP::Server::Tiny.new(port => 8898).run(&app);
DESCRIPTION
This provides a mechanism to receive the Lumberjack
logging messages that have been sent by a remote
Lumberjack::Dispatcher::Proxy dispatcher and cause
them to be re-dispatched to the local Lumberjack
dispatchers.
An instance of the class is a P6SGI
compliant application
callable so can be used with any compliant server container.
The class has no public methods or attributes and the way that the messages are onward dispatched is entirely in the hands of the local Lumberjack framework setup.
The application will only accept 'POST' requests of content type 'application/json' (which content will be a JSON serialised message.) The actual location on the server is the responsibility of the larger application configuration.