From: Marcus Granado Date: Fri, 16 Oct 2009 13:44:03 +0000 (+0100) Subject: CP-706: use iso8601-like string format in debug and audit logs X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7dfe19363440c88297aeb82a7aba83db0492778d;p=xcp%2Fxen-api-libs.git CP-706: use iso8601-like string format in debug and audit logs Signed-off-by: Marcus Granado --- diff --git a/log/log.ml b/log/log.ml index 655e490..ad7e10c 100644 --- a/log/log.ml +++ b/log/log.ml @@ -204,7 +204,7 @@ let gettimestring () = let time = Unix.gettimeofday () in let tm = Unix.gmtime time in let msec = time -. (floor time) in - sprintf "%d%.2d%.2d %.2d:%.2d:%.2d.%.3d|" (1900 + tm.Unix.tm_year) + sprintf "%d%.2d%.2dT%.2d:%.2d:%.2d.%.3dZ|" (1900 + tm.Unix.tm_year) (tm.Unix.tm_mon + 1) tm.Unix.tm_mday tm.Unix.tm_hour tm.Unix.tm_min tm.Unix.tm_sec (int_of_float (1000.0 *. msec))