Class Puma::Events
In: lib/puma/events.rb
Parent: Object

The default implement of an event sink object used by Server for when certain kinds of events occur in the life of the server.

The methods available are the events that the Server fires.

Methods

debug   error   fire_on_booted!   log   new   on_booted   parse_error   stdio   strings   unknown_error   write  

Included Modules

Const

Constants

DEFAULT = new(STDOUT, STDERR)

Attributes

stderr  [R] 
stdout  [R] 

Public Class methods

Create an Events object that prints to stdout and stderr.

Returns an Events object which writes it‘s status to 2 StringIO objects.

Public Instance methods

Write str to +@stderr+

Write str to +@stdout+

An HTTP parse error has occured. server is the Server object, env the request, and error a parsing exception.

An unknown error has occured. server is the Server object, env the request, error an exception object, and kind some additional info.

[Validate]