Branch: refs/heads/master
Home:
https://github.com/ClusterLabs/libqb
Commit: 7556204b27100712b6dda7a7c53bdf21186a6bc2
https://github.com/ClusterLabs/libqb/commit/7556204b27100712b6dda7a7c53bd...
Author: Chrissie Caulfield <ccaulfie(a)redhat.com>
Date: 2018-11-09 (Fri, 09 Nov 2018)
Changed paths:
M examples/simplelog.c
M include/qb/qblog.h
M lib/Makefile.am
M lib/log.c
M lib/log_blackbox.c
M lib/log_file.c
M lib/log_format.c
M lib/log_int.h
M lib/log_syslog.c
M lib/log_thread.c
M tests/check_log.c
Log Message:
-----------
Add the option of hi-res (millisecond) timestamps (#329)
* log: Add high-resolution timestamp option for log files
This adds the %T option to the log format for millisecond timestamps. There's a
feature test macro QB_FEATURE_LOG_HIRES_TIMESTAMPS so that applications know that they are
available.
Because this changes the internal logging API, applications that use custom loggers will
also need to change their custom logging destinations to take a struct timespec instead of
a time_t. The above feature test macro will help in deciding which is appropriate.
**NOTE:** This service has been marked for deprecation:
https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from
GitHub.com on January 31st, 2019.