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 #19

Merged
merged 1 commit into from
Oct 31, 2019
Merged

Added fixed log name support #19

merged 1 commit into from
Oct 31, 2019

Conversation

ezegomez
Copy link
Contributor

See https://code.google.com/p/google-glog/issues/detail?id=209 - 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.

@googlebot
Copy link
Collaborator

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@ezegomez
Copy link
Contributor Author

ezegomez commented Jun 2, 2015

I signed it

@googlebot
Copy link
Collaborator

CLAs look good, thanks!

@googlebot
Copy link
Collaborator

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@googlebot googlebot added cla: no and removed cla: yes labels Sep 8, 2016
See https://code.google.com/p/google-glog/issues/detail?id=209 - 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.
@googlebot
Copy link
Collaborator

CLAs look good, thanks!

@harlowja
Copy link

Can we get this merged?

@sergiud sergiud merged commit 44f6079 into google:master Oct 31, 2019
sergiud added a commit that referenced this pull request Nov 1, 2019
This reverts commit 44f6079, reversing
changes made to 242130d.
@sergiud
Copy link
Collaborator

sergiud commented Nov 1, 2019

I'm reverting this PR due to CI failures. Please revise and resubmit.

ezegomez pushed a commit to ezegomez/glog that referenced this pull request Nov 4, 2019
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 pushed a commit that referenced this pull request Nov 6, 2019
* Added fixed log name support, take 2

See https://code.google.com/p/google-glog/issues/detail?id=209 and former #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
@sergiud sergiud added this to the 0.5 milestone Apr 13, 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 <ezegomez@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants