Skip to content

Conversation

@uhliarik
Copy link

Add support for millisecond-resolution timestamps in ErrorLogFormat.

%{m}t prints the timestamp in millisecond-resolution.

  • include/util_time.h(): Define new AP_CTIME_OPTION_MSEC option for printing time in milliseconds format.

  • server/util_time.c(ap_recent_ctime_ex): Handle AP_CTIME_OPTION_MSEC to print time in a millisecond format.

  • server/log.c(log_ctime): Recognize the m time option in both fast-path and composite %{...}t formats.

Add support for millisecond-resolution timestamps in ErrorLogFormat.

%{m} prints the timestamp in millisecond-resolution.

* include/util_time.h():
  Define new AP_CTIME_OPTION_MSEC option for printing time in milliseconds
  format.

* server/util_time.c(ap_recent_ctime_ex):
  Handle AP_CTIME_OPTION_MSEC to print time in a millisecond format.

* server/log.c(log_ctime):
  Recognize the m time option in both fast-path and composite %{...}t formats.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant