Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added fixed log name support, take 2 (#489) #3

Conversation

nathanhjli
Copy link

  • Added fixed log name support, take 2

See https://code.google.com/p/google-glog/issues/detail?id=209 and former google#19 - this is an updated version of that patch.

It adds a flag that allows to switch behavior from base_filename + filename_extension + time_pid_string to base_filename + filename_extension, while still defaulting to the current behavior to avoid breakage in existing code. This change would allow easier log rotation schemes and better control on what's written on disk.

  • Ifdef away fcntl on mingw

  • Use the defined HAVE_FCNTL instead

  • ifdef away tests as well

add have_sys_wait for wait() on mingw.

  • OS_WINDOWS bug in fseeking to the end, only triggered here

@pkj415
Copy link

pkj415 commented Jan 20, 2022

@nathanhjli you can add Cherry-picked from 58d7f87 at the end of the commit message

…8d7f87

* Added fixed log name support, take 2

See https://code.google.com/p/google-glog/issues/detail?id=209 and former google#19 - this is an updated version of that patch.

It adds a flag that allows to switch behavior from base_filename + filename_extension + time_pid_string to base_filename + filename_extension, while still defaulting to the current behavior to avoid breakage in existing code. This change would allow easier log rotation schemes and better control on what's written on disk.

* Ifdef away fcntl on mingw

* Use the defined HAVE_FCNTL instead

* ifdef away tests as well

add have_sys_wait for wait() on mingw.

* OS_WINDOWS bug in fseeking to the end, only triggered here
@nathanhjli nathanhjli force-pushed the cherry_pick_timestamp_in_logfile_name branch from 43feee5 to 368833e Compare January 20, 2022 20:49
@nathanhjli nathanhjli merged commit e11638e into yugabyte:master-yb Jan 20, 2022
nathanhjli added a commit that referenced this pull request Jan 25, 2022
nathanhjli added a commit that referenced this pull request Feb 7, 2022
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.

3 participants