Commit Graph

604 Commits

Author SHA1 Message Date
Murat Kilivan
68f3b174d9
Use CMake to download GoogleTest as part of build (#355)
Having GoogleTest source in the project means we are likely using a stale version of test. This change is to use CMake to download GoogleTest as part of the build's configuration step.
2020-06-03 15:37:46 -06:00
Murat Kilivan
639bfd7452
Use the correct namespace to call shutDownLogging() (#353)
This commit is to align the example source code in README with the source code.
2020-05-31 14:50:15 -06:00
Roman Popov
751330bb41
Allow throwing from exit handler (#349)
For example for unit testing purposes we may want to replace SIGABRT with
throwing an exception, so that unit tests for CHECK()s can be written.
2020-05-08 20:13:25 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
aab25a4091
one more comment fix 2020-05-08 14:33:50 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
62162e8613
updated code comments since SIGABRT is used with default fatal handler instead of a throw 2020-05-08 14:30:52 -06:00
Kjell Hedström
6810f060f6
update travis, don't bog down the log file (#340) 2020-04-11 15:07:40 -06:00
Kjell Hedström
8dbd784922 Update issue templates 2020-04-02 21:32:39 -06:00
Kjell Hedström
960d48d726 Update issue templates 2020-04-02 21:31:28 -06:00
JoelStienlet
4000c5c899
remove std::move in return : std::future can only be moved anyway (#336)
Co-authored-by: Joel Stienlet <stienlet@localhost.localdomain>
2020-03-06 07:55:36 -07:00
Nicholas Lederer
9fb3e61e89
fix issue with stacktrace_windows not allocating sufficient memory for SYMBOL_INFO struct (#334) 2020-02-25 07:15:09 -07:00
bmagistro
3ffc36a3a2
add option to disable installing g3log for project embedding (#333) 2020-02-14 15:24:48 -07:00
Kjell Hedström
3a905ed83d
Update README.markdown 2019-12-16 15:43:32 -07:00
myd7349
29fb209b08 Update README.markdown (#329) 2019-12-14 06:51:10 -07:00
Jean-Charles Quillet
9b5527d773 Set link to local files as relative (#328) 2019-11-20 10:30:02 -07:00
Paul Smith
f149179178 Ensure LOG* and CHECK* macros are statement-safe (#320)
The LOG and LOGF macros had been modified to be statement-safe, but the
LOG_IF, CHECK, LOGF_IF, CHECKF, and CHECK_F macros were all still
unsafe in face of code where single-statement blocks were not enclosed
in {}.

For example code like this:

  if (!foobar)
      CHECKF(goodness, "badness detected!");
  else
      handle_foobar(foobar);

would fail in subtle and possibly dangerous ways.

Fix this by combining multiple if-statements into a single conditional
and inverting the conditions, then adding an empty then-block and moving
the log statement to the else-block.
2019-07-28 16:07:16 -06:00
myd7349
5cb5371e0e Fix CMake interface include directories (#321) 2019-07-28 15:55:57 -06:00
myd7349
376c417ad1 Improve CMake module file (#312)
* Improve CMake module file
* Fix packaging on Win32
* appveyor: Test install and package target
* Travis-CI: Test install and package target
* Update documentation for working with CMake
* Simplify g3loggerConfig.cmake
* Add Doc Prerequisites section
2019-05-13 22:42:15 -06:00
Kjell Hedström
9aecd55051
Update README.markdown (#316) 2019-05-02 15:32:13 -06:00
mobileben
9c5e7f3bcb #309 properly pass through ENABLE_FATAL_SIGNALHANDLING for the various iOS slices (#310) 2019-03-22 17:12:23 -06:00
mobileben
bc358e7436 Add arm64e support (#307) 2019-03-14 22:10:58 -06:00
Kjell Hedström
cb4a94da7d
Cloud CI: updated for travis OSX + Ubuntu. Simplified setup (#301)
* updated for travis OSX + Ubuntu. Simplified setup

* more robust script for test
2019-02-18 21:01:30 -07:00
Benjamin Beichler
e8a07f25b5 Fix several CMake Issues (#294)
* Restructure Build.cmake to use "modern" Cmake

Since it is deprecated to modify the global compiler flags and similar options, the Build.cmake is converted to use only per target operations.

Additionally, the checks for backtrace and Pthread lib is converted to use the in cmake included functions. Also the check for the cxa_demangle function should be more robust now.

* fixed option for performance test

* use CMAKE_CURRENT_SOURCE_DIR in git cmd-lines to get current version, for better integration as cmake subdirectory

* bump required cmake version to 3.2 and use target_compile_feature to fix OSX compiler recognition and c++14 compiler flags
2019-02-18 12:43:04 -07:00
Michael Gratton
e08e933f3e Create an IMPORT target in g3loggerConfig.cmake (#299) 2019-02-18 10:52:02 -07:00
Kjell Hedström
1eb0408347
Simplified travis setup with ubuntu xenail (#300)
* test in progress

* improved PR instructions

* revert back
2019-02-18 10:50:37 -07:00
Kjell Hedström
e7b70f3138
Update README.markdown 2019-02-16 16:02:12 -07:00
Aleksey Dobrunov
1a010de2f6 Mingw parse error (#293)
* fix 'Failure to successfully parse the message' on mingw

* removed redundant checks
2019-01-15 12:27:53 -07:00
Aleksey Dobrunov
502bf318a4 add option G3_SHARED_RUNTIME (#292) 2019-01-15 12:25:51 -07:00
Christos
cf36852238 Wrap gnu::format around #if to avoid msvc warnings (#291)
* Wrap gnu::format around #if to avoid msvc warnings

* Fix compilation issue
2018-12-17 20:08:02 -07:00
Nils Gladitz
048b23d38c Use C++11 generic attribute syntax to avoid issue #282 (#283) 2018-11-19 15:25:14 -07:00
Kjell Hedström
de870694d5
Revert "add /MT for MSVC static lib (#278)" (#279)
This reverts commit ab76fc32c0.
2018-07-15 14:01:56 -06:00
AlexP11223
ab76fc32c0 add /MT for MSVC static lib (#278) 2018-07-14 08:59:36 -06:00
ccvca
39526ce9d2 Fix: VS 2015 logmessage.cpp(167): error C2437: "_file" already initialized (#277) 2018-07-13 05:59:11 -06:00
Kjell Hedström
3c9a590a76
Improved readme for Windows 64 bit (#276)
* Improved readme for Windows 64 bit 

This clarifies that Windows users have to check the CMake documentation

* Spell check
2018-07-12 21:40:03 -06:00
outkontroll
a6788f89be VS2013 missing include (#273) 2018-06-21 15:39:26 -06:00
Max Savenkov
5ffb360e2f export generated defines directory so that the library can be used via add_subdirectory from another CMake-based project (#268) 2018-06-12 14:59:15 -06:00
mobileben
86c04cf729 Support defining the minimum deployment since newer Xcode defines minimum target of 10.0 for 32-bit devices (#272) 2018-06-06 07:21:23 -06:00
Kjell Hedström
b1beccc3a7
Update API.markdown 2018-05-24 17:12:47 -06:00
Kjell Hedström
f2c331f14c
Added description for FATAL hook function 2018-05-24 17:10:53 -06:00
Kjell Hedström
90065889b6
Added description for overriding the default signal handling 2018-05-24 17:06:28 -06:00
Kjell Hedström
01be7d4a0e
Added information for PID1 fatal signal handling 2018-05-24 16:57:44 -06:00
Kjell Hedström
2a21914c07
Update API.markdown
Added description: disable fatal signal handling
2018-05-24 16:50:55 -06:00
Julien Lecomte
e58c8d1ddf Add missing STATUS keyword following commit 82df2168aa for #190 (#267) 2018-05-15 05:49:41 -06:00
Andreas Schönle
7b0414f76f Use defective stlpatch_future.hpp only for VS2013 (#266) 2018-05-14 06:43:05 -06:00
Eli (Codekrafter)
e8fe9d8b38 fixed warning about whitespace (#265) 2018-05-09 10:54:48 -06:00
John Farrier
69f21e3513 Fixed ambiguous constructor error. (#262) 2018-04-26 20:30:26 -06:00
Thomas Khyn
b6220b9174 MinGW / Windows fixes (#260)
* Add MINGW_HAS_SECURE_API flag for mingw compiler

* Use cmd rather than powershell to get GIT_VERSION on windows

powershell causes cmake to hang
2018-04-22 10:26:28 -06:00
DerekJuba-NIST
7f25b004cf Update loglevels.hpp (#259)
Fixed typo DEBUG -> DBUG
2018-04-12 09:55:42 -06:00
Kjell Hedström
ee742752e1
Update PULL_REQUEST_TEMPLATE.md 2018-03-30 21:20:39 -06:00
Kjell Hedström
9f4023c0cb
Create PULL_REQUEST_TEMPLATE.md 2018-03-30 21:20:12 -06:00
Kjell Hedström
8112f75dcf
improved runalltests (#255) 2018-03-25 23:35:52 -06:00