From bfdd052bda75e831c0135389f463fd2b20102ee3 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 11 Jul 2011 15:56:36 +0200 Subject: add documentation for tracing Signed-off-by: franck cuny --- lib/Net/HTTP/Spore.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib') diff --git a/lib/Net/HTTP/Spore.pm b/lib/Net/HTTP/Spore.pm index 520b356..7bbd612 100644 --- a/lib/Net/HTTP/Spore.pm +++ b/lib/Net/HTTP/Spore.pm @@ -207,4 +207,22 @@ either be a file on disk or a remote URL. Create and return a L object, with methods generated from the specification string. +=head2 TRACING + +L provides a way to trace what's going on when doing a request. + +=head3 Enabling Trace + +You can enable tracing using the environment variable B. You can also enable tracing at construct time by adding B 1> when calling B. + +=head3 Trace Output + +By default output will be directed to B. You can specify another default output: + + SPORE_TRACE=1=log.txt + +or + + ->new_from_spec('spec.json', trace => '1=log.txt'); + =back -- cgit v1.2.3