Re: Customize data logging

Joan Picanyol i Puig <[email protected]> Wed, 9 Jul 2014 10:03:03 +0200
Newsgroups gmane.comp.java.grinder.user
Message-ID <[email protected]>
* Antonio Osorio <antonio.osorio-g4dUTk+gKbW4mfPA/[email protected]> [20140708 19:36]:
> Does any know if it is possible to customize the log statements output to the data log?
> 
> For example currently an entry reads:
> 
> > 014-07-07 21:37:16,215 INFO  jenkins-0 thread-0 [ run-0, test-1008 ]: http://localhost:9080/endpoint/ -> 200 OK, 1262229     bytes
> 
> I would like to include the time it took to perform the call.

You'd need to edit the source and recompile, see
net.grinder.plugin.http.HTTPRequest.getHTTPResponse().

If you don't feel like modifying the source and recompiling, you could
extend HTTPRequest overriding processResponse() to log an additional
line to suit your needs.

However, I'm unsure why you'd want to do this: you already have this
information in the data files.

qvb
--
pica

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft