Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [HTCondor-users] Condor log timestamps at milliseconds
- Date: Fri, 23 Feb 2018 16:42:24 -0600
- From: Todd Tannenbaum <tannenba@xxxxxxxxxxx>
- Subject: Re: [HTCondor-users] Condor log timestamps at milliseconds
On 2/23/2018 7:19 AM, Samik Raychaudhuri wrote:
> Hello,
>
> By default, the log lines in EventLog has the EventTime field resolved
> at second, as shown below. Is it possible to get a resolution of
> millisecond in the logs file instead?
>
No, not really. :(
There appears to be a compile-time option to enable millisecond resolution of the EventTime field, but it looks to be disabled for a reason.
The source code section I am referring is at
https://github.com/htcondor/htcondor/blob/master/src/condor_utils/condor_event.h#L298-L304
/*
define ULOG_MICROSECONDS on linux to get microsecond resolution in the
user log. This is write only, and probably breaks compatability with
log readers.
*/
#ifdef ULOG_MICROSECONDS
struct timeval eventTimeval;
#endif
};