In this release, glog underwent a major overhaul to take advantage of C++14 language and library features. Among the many changes, the public API has also been extended to use the more up-to-date standard library types (notably chrono).
glog aims to maintain source compatibility with the previous release. We did our best to ensure such compatibility in this version as well. However, downstream clients must recompile against the new glog version due to ABI incompatible changes.
Deprecations
A number of functions, methods, and types have been deprecated in favor of more uniform interface.
[!WARNING]
Deprecated methods will be removed in glog 0.8.0. Please make sure to update your code.
google::LogMessage::getMessageTime has been superseded by google::LogMessage::time.
google::LogMessageTime::timestamp has been superseded by google::LogMessageTime::when.
google::LogMessageTime::gmtoff has been superseded by google::LogMessageTime::gmtoffset.
google::EnableLogCleaner(unsigned) has been superseded by google::EnableLogCleaner(std::chrono::minutes).
google::LogSink::send accepting std::tm (deprecated since glog 0.6.0) has been superseded by google::LogSink::send to accept google::LogMessageTime instead.
google::LogMessageInfo and the custom prefix callback accepting this type have been superseded by google::LogMessage. To customize the log line prefix use the google::InstallPrefixFormatter function instead of the google::InitGoogleLogging overload.
Further changes
google::LogSeverity has been converted to an unscoped enum. This can result in compilation issues if implicit conversion between an int and google::LogSeverity was erroneously assumed.
By default, CMake no longer generates the undocumented and untested pkg-config files. The support is now opt in which requires the CMake option WITH_PKGCONFIG to be explicitly set to ON.
What's Changed
bazel: Use glog 0.6.0 in README. by @xiaoxq in https://github.com/google/glog/pull/831
Strip only the first leading @ in repo name by @meteorcloudy in https://github.com/google/glog/pull/832
fix: Fix warning about redefining STDC_HEADERS by @joeyparrish in https://github.com/google/glog/pull/835
support ndk r25 by @sergiud in https://github.com/google/glog/pull/844
added emscripten support by @sergiud in https://github.com/google/glog/pull/846
simplify DLOG macro definition in NDEBUG mode by @lstaroth in https://github.com/google/glog/pull/830
windows: call to FormatMessage() should _IGNORE_INSERTS by @anpol in https://github.com/google/glog/pull/849
log_file_header: add option to disable log file headers. by @anpol in https://github.com/google/glog/pull/850
SetLogger should delete previously set custom logger. by @anpol in https://github.com/google/glog/pull/853
logsink: fix multiple issues with LogSink::ToString() by @anpol in https://github.com/google/glog/pull/852
Fix broken stacktrace by @marekcirkos in https://github.com/google/glog/pull/851
Revert "simplify DLOG macro definition in NDEBUG mode" by @sergiud in https://github.com/google/glog/pull/855
Remove symbolize Bazel test by @drigz in https://github.com/google/glog/pull/860
Disable cc toolchain resolution when using Clang on Windows by @comius in https://github.com/google/glog/pull/863
Fix Windows clang CI for CC toolchain resolution by @jsharpe in https://github.com/google/glog/pull/877
ci: run linux workflow on ubuntu 22.04 by @sergiud in https://github.com/google/glog/pull/885
ci: update actions by @sergiud in https://github.com/google/glog/pull/886
fixed emscripten detection by @sergiud in https://github.com/google/glog/pull/897
drop lgtm badges by @sergiud in https://github.com/google/glog/pull/899
avoid anonymous struct typedefs by @sergiud in https://github.com/google/glog/pull/900
cmake: rename glogbase to glog_internal by @sergiud in https://github.com/google/glog/pull/901
drop custom prefix option by @sergiud in https://github.com/google/glog/pull/898
Adds fuzz testing for demangle by @catenacyber in https://github.com/google/glog/pull/878
[docs] Add Conan usage on README by @uilianries in https://github.com/google/glog/pull/862
ci: includ CIFuzz GitHub workflow by @catenacyber in https://github.com/google/glog/pull/903
Fix empty stack trace when use bazel on aarch64 by @noaxp in https://github.com/google/glog/pull/905
move to C++14 by @sergiud in https://github.com/google/glog/pull/902
Fixes for OpenBSD by @brad0 in https://github.com/google/glog/pull/921
New Contributors
@xiaoxq made their first contribution in https://github.com/google/glog/pull/831
@joeyparrish made their first contribution in https://github.com/google/glog/pull/835
@lstaroth made their first contribution in https://github.com/google/glog/pull/830
@marekcirkos made their first contribution in https://github.com/google/glog/pull/851
@comius made their first contribution in https://github.com/google/glog/pull/863
@jsharpe made their first contribution in https://github.com/google/glog/pull/877
@catenacyber made their first contribution in https://github.com/google/glog/pull/878
@uilianries made their first contribution in https://github.com/google/glog/pull/862
@noaxp made their first contribution in https://github.com/google/glog/pull/905
@brad0 made their first contribution in https://github.com/google/glog/pull/921
@mai93 made their first contribution in https://github.com/google/glog/pull/916
@Vertexwahn made their first contribution in https://github.com/google/glog/pull/919
@ekilmer made their first contribution in https://github.com/google/glog/pull/925
@pravinba9495 made their first contribution in https://github.com/google/glog/pull/946
@pateldeev made their first contribution in https://github.com/google/glog/pull/890
@bqhuyy made their first contribution in https://github.com/google/glog/pull/960
@dependabot made their first contribution in https://github.com/google/glog/pull/970
@lingbin made their first contribution in https://github.com/google/glog/pull/972
@vapier made their first contribution in https://github.com/google/glog/pull/985
@4c3y made their first contribution in https://github.com/google/glog/pull/986
@RISHIKREDDYL made their first contribution in https://github.com/google/glog/pull/1072
Full Changelog: https://github.com/google/glog/compare/v0.6.0...v0.7.0