[Bro-Dev] #508: ASCII Log Writer precision of time values varies

Gilbert Clark gc355804 at ohio.edu
Thu Jul 21 19:39:25 PDT 2011


3) sounds like it could lead to thread-safety issues with the new 
logging stuff.

Rather than a user-defined function, though, what about allowing the 
user to specify a date string (with additional UNIX second / fractional 
second options)?

--Gilbert

On 7/21/2011 9:32 PM, Bro Tracker wrote:
> #508: ASCII Log Writer precision of time values varies
> -----------------------------+------------------------
>   Reporter:  jsiwek           |      Owner:  jsiwek
>       Type:  Feature Request  |     Status:  new
>   Priority:  Normal           |  Milestone:  Bro1.6
> Component:  Bro              |    Version:  git/master
>   Keywords:                   |
> -----------------------------+------------------------
>   It would be nicer if, by default, time values were written with a constant
>   number of digits after the decimal.  Should we:
>
>   1) Hardcode a constant 6 digit precision
>   2) Make the precision a configurable `&redef` option of the writer,
>   defaulting to 6
>   3) Make a configurable `&redef` option of the writer that can be an
>   arbitrary function that takes a time value and returns the formatted
>   timestamp string for it, defaulting to a function that returns the 6 digit
>   precision (e.g. could also provide a function that returns a human
>   readable timestamp string)
>



More information about the bro-dev mailing list