[RADIATOR] Performance logging

2016-03-23 Thread Hartmaier Alexander
Hi, I'd like to add the time it took to craft a response for each request to the logs. In the reference manual I only found %E which is 'The elapsed time in seconds since the packet was received. Can be used to log processing time for proxied packets etc.'. For this logging I'd need at least milli-

Re: [RADIATOR] Performance logging

2016-03-23 Thread Hugh Irvine
Hello Alex - %s is the number of microseconds in the current second. From section 5.2 of the Radiator 4.16 reference manual (“doc/ref.pdf”): %s Microseconds in the current second Note that the RADIUS protocol only defines times in seconds. regards Hugh > On 23 Mar 2016, at 19:44,

Re: [RADIATOR] [***SPAM***] Re: Performance logging

2016-03-23 Thread Hartmaier Alexander
Hi Hugh, is that a microsecond counter starting when the request is received? Imho the wording is confusing, will it wrap around when the request takes more than one second? How would I log the microseconds as integer for requests that take longer than one second? Thanks, Alex On 2016-03-23 10:

Re: [RADIATOR] Performance logging

2016-03-23 Thread Hugh Irvine
Hi Alex - I may have misunderstood your original question - %s is only the offset in the current second. For what you want to do you should probably be using “LogMicroseconds” global parameter (requires “Time-Hires” from CPAN). Otherwise you can add your own custom time attributes in the curr