google / glog

C++ implementation of the Google logging module
http://google.github.io/glog/
BSD 3-Clause "New" or "Revised" License
6.93k stars 2.05k forks source link

feat: allow to obtain the stack trace as a string #1075

Closed sergiud closed 5 months ago

sergiud commented 5 months ago

Expose DumpStackTraceToString as GetStackTrace.

Resolves #144

codecov-commenter commented 5 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (68b6ce3) 59.60% compared to head (755bec4) 59.57%. Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1075 +/- ## ========================================== - Coverage 59.60% 59.57% -0.03% ========================================== Files 19 19 Lines 2604 2605 +1 Branches 914 915 +1 ========================================== Hits 1552 1552 - Misses 712 713 +1 Partials 340 340 ``` | [Files](https://app.codecov.io/gh/google/glog/pull/1075?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google) | Coverage Δ | | |---|---|---| | [src/glog/logging.h](https://app.codecov.io/gh/google/glog/pull/1075?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google#diff-c3JjL2dsb2cvbG9nZ2luZy5o) | `64.28% <ø> (ø)` | | | [src/logging.cc](https://app.codecov.io/gh/google/glog/pull/1075?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google#diff-c3JjL2xvZ2dpbmcuY2M=) | `66.81% <100.00%> (-0.03%)` | :arrow_down: | | [src/utilities.h](https://app.codecov.io/gh/google/glog/pull/1075?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google#diff-c3JjL3V0aWxpdGllcy5o) | `100.00% <ø> (ø)` | | | [src/utilities.cc](https://app.codecov.io/gh/google/glog/pull/1075?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=google#diff-c3JjL3V0aWxpdGllcy5jYw==) | `71.55% <80.00%> (-0.41%)` | :arrow_down: |