C++ implementation of the Google logging module
Go to file
Austin Schuh 039298ac3c Restore "Check failure stack trace" message on LOG(FATAL)
https://github.com/google/glog/pull/1074 refactored some of the code to
enable the failure function to throw.  This made it so when
the LogMessageFatal class was used, the error ended up being printed
differently.

Before:
  LOG_AT_LEVEL(google::LogSeverity::FATAL) << "Crash: Hello world!"; ->

  F20240621 18:12:44.710584 139620827212672 log_demo.cc:16] Crash: Hello world!
  *** Check failure stack trace: ***
      @     0x559e2704711a
      @     0x7efc01fac24a
      @     0x7efc01fac305
      @     0x559e27046dd5
  Aborted

  LOG(FATAL) << "Crash: Hello world!"; ->

  F20240621 18:13:05.760556 140518290856832 log_demo.cc:16] Crash: Hello world!
      @     0x55cdc2475130
      @     0x7fccf6fb324a
      @     0x7fccf6fb3305
      @     0x55cdc2474df5
  Aborted

With this patch, they both produce the same output.

Signed-off-by: Austin Schuh <austin.linux@gmail.com>
2024-06-22 11:20:40 -07:00
.bazelci fix: unify LogMessage and LogMessageInfo (#1057) 2024-01-10 02:03:54 +01:00
.github ci(deps): update to gtest 1.14 (#1105) 2024-06-13 01:40:15 +02:00
bazel feat(bazel): port to bzlmod (#1097) 2024-06-08 16:02:59 +02:00
cmake feat(cleanup): use chrono (#1038) 2024-01-05 20:38:24 +01:00
docs Merge branch '0.7.x' 2024-06-13 00:01:17 +02:00
examples docs: provide custom sinks example (#1103) 2024-06-12 01:20:04 +02:00
src Restore "Check failure stack trace" message on LOG(FATAL) 2024-06-22 11:20:40 -07:00
.clang-format chore: apply clang-format 2023-12-30 20:38:56 +01:00
.clang-tidy move to C++14 (#902) 2023-02-28 12:26:49 +01:00
.gitattributes override header language 2021-07-14 22:55:23 +02:00
.gitignore docs: move to mkdocs-material (#1101) 2024-06-11 19:53:37 +02:00
AUTHORS fix(cleanup): ensure FLAGS_log_dir ends with '/' (#972) 2023-10-12 13:35:52 +02:00
BUILD.bazel Add CI job for clang-cl on Windows 2022-03-04 11:12:21 +01:00
ChangeLog release 0.7.1 (#1098) 2024-06-08 17:07:34 +02:00
CMakeLists.txt cmake: require gtest 1.11 (#1104) 2024-06-13 01:16:50 +02:00
codecov.yml ci(codecov): enable comments (#966) 2024-01-04 21:54:23 +01:00
CONTRIBUTORS fix(cleanup): ensure FLAGS_log_dir ends with '/' (#972) 2023-10-12 13:35:52 +02:00
gcovr.cfg feat: make headers self-contained (#1030) 2024-01-04 21:03:55 +01:00
glog-config.cmake.in fix: threads are always enabled (#1036) 2024-01-05 15:21:43 +01:00
glog-modules.cmake.in install unwind find module alongside glog 2019-11-10 11:09:18 +01:00
libglog.pc.in libglog.pc: Set Libs.private for static linking 2022-01-25 19:35:57 +01:00
LICENSE.md docs: move to mkdocs-material (#1101) 2024-06-11 19:53:37 +02:00
mkdocs.yml Merge branch '0.7.x' 2024-06-13 00:01:17 +02:00
MODULE.bazel feat(bazel): port to bzlmod (#1097) 2024-06-08 16:02:59 +02:00
README.rst docs: move to mkdocs-material (#1101) 2024-06-11 19:53:37 +02:00
WORKSPACE.bazel feat(bazel): port to bzlmod (#1097) 2024-06-08 16:02:59 +02:00

Google Logging Library
======================

|Linux Github actions| |Windows Github actions| |macOS Github actions| |Codecov|

Google Logging (glog) is a C++14 library that implements application-level
logging. The library provides logging APIs based on C++-style streams and
various helper macros.

Getting Started
---------------

Please refer to project's `documentation <https://google.github.io/glog/>`_.


.. |Linux Github actions| image:: https://github.com/google/glog/actions/workflows/linux.yml/badge.svg
   :target: https://github.com/google/glog/actions
.. |Windows Github actions| image:: https://github.com/google/glog/actions/workflows/windows.yml/badge.svg
   :target: https://github.com/google/glog/actions
.. |macOS Github actions| image:: https://github.com/google/glog/actions/workflows/macos.yml/badge.svg
   :target: https://github.com/google/glog/actions
.. |Codecov| image:: https://codecov.io/gh/google/glog/branch/master/graph/badge.svg?token=8an420vNju
   :target: https://codecov.io/gh/google/glog