popcorn :: PopLogger :: defaultinit
popcorn $ PopLogger :: default_formatter
Formatter used to format messages before outputting thempopcorn $ PopLogger :: default_formatter=
Formatter used to format messages before outputting themcore :: Object :: class_factory
Implementation used byget_class to create the specific class.
			logger :: Logger :: default_formatter
Formatter used to format messages before outputting themlogger :: Logger :: default_formatter=
Formatter used to format messages before outputting thempopcorn :: Handler :: defaultinit
core :: Object :: defaultinit
popcorn :: PopLogger :: defaultinit
logger :: Logger :: defaultinit
popcorn :: Handler :: deserialize_body
Deserialize the request bodycore :: Object :: is_same_instance
Return true ifself and other are the same instance (i.e. same identity).
			core :: Object :: is_same_serialized
Isself the same as other in a serialization context?
			core :: Object :: is_same_type
Return true ifself and other have the same dynamic type.
			core :: Object :: output_class_name
Display class name on stdout (debug only).popcorn :: Handler :: validate_body
Validate body input withvalidator
			popcorn :: Handler :: validator
Validator used to check body inputpopcorn :: Handler :: validator=
Validator used to check body input
# Display log info about request processing.
class PopLogger
	super Logger
	super Handler
	# Do we want colors in the console output?
	var no_color = false is optional
	redef var default_formatter = new PopFormatter(no_color) is optional
	redef fun all(req, res) do
		var clock = req.clock
		if clock != null then
			add_raw(info_level, "{req.method} {req.url} {status(res)} ({clock.total}s)")
		else
			add_raw(info_level, "{req.method} {req.url} {status(res)}")
		end
	end
	# Colorize the request status.
	private fun status(res: HttpResponse): String do
		if no_color then return res.status_code.to_s
		return res.color_status
	end
end
					lib/popcorn/pop_logging.nit:32,1--56,3