Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Conversation

@ezegomez
Copy link
Contributor

@ezegomez ezegomez commented Nov 4, 2019

See https://code.google.com/p/google-glog/issues/detail?id=209 and former #19 - this is an updated + rebased 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.

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.
@sergiud sergiud self-assigned this Nov 4, 2019
@sergiud sergiud merged commit 58d7f87 into google:master Nov 6, 2019
@sergiud sergiud added this to the 0.5 milestone Mar 30, 2021
@sergiud sergiud mentioned this pull request May 6, 2021
nathanhjli pushed a commit to nathanhjli/glog that referenced this pull request Jan 20, 2022
* 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 pushed a commit to nathanhjli/glog that referenced this pull request Jan 20, 2022
…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 added a commit to yugabyte/glog that referenced this pull request Jan 20, 2022
…8d7f87 (#3)

* 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

Co-authored-by: Ezequiel Lara Gomez <[email protected]>
nathanhjli added a commit to yugabyte/glog that referenced this pull request Jan 25, 2022
nathanhjli added a commit to yugabyte/glog that referenced this pull request Feb 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants