LICENSE NEWS README
Clogger Clogger::Format

Methods

::new #call #close #each #respond_to? #to_path

class Clogger

See the README for usage instructions

Public Class Methods

Clogger.new(app, :logger => $stderr, :format => string) => obj source

Creates a new Clogger object that wraps app. :logger may be any object that responds to the "<<" method with a string argument. Instead of :logger, :path may be specified to be a :path of a File that will be opened in append mode.

Public Instance Methods

clogger.call(env) => [ status, headers, body ] source

calls the wrapped Rack application with env, returns the

status, headers, body

tuplet required by Rack.

clogger.close source

Delegates the body#close call to the underlying body object. This is only used when Clogger is wrapping the body of a Rack response and should be automatically called by the web server.

clogger.each { |part| socket.write(part) } source

Delegates the body#each call to the underlying body object while tracking the number of bytes yielded. This will log the request.

clogger.respond_to?(:to_path) => true or false
clogger.respond_to?(:close)  => true source

used to delegate :to_path checks for Rack webservers that optimize static file serving

clogger.to_path source

used to proxy :to_path method calls to the wrapped response body.


Pages Classes Methods
mail archives: https://YHBT.net/clogger-public/
	http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/clogger-public/ 
	imaps://YHBT.net/inbox.comp.lang.ruby.clogger.0 
	imap://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.lang.ruby.clogger.0 
	nntps://news.public-inbox.org/inbox.comp.lang.ruby.clogger 
	nntp://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/inbox.comp.lang.ruby.clogger 
	 
	 
public: clogger-public@YHBT.net
source code: git clone https://YHBT.net/clogger.git
	torsocks git clone http://7fh6tueqddpjyxjmgtdiueylzoqt6pt7hec3pukyptlmohoowvhde4yd.onion/clogger.git