Commit Graph

716 Commits

Author SHA1 Message Date
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
cdceb28deb
Update logworker.hpp (#369) 2020-06-29 11:58:01 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
a5f0158abd
speed up build (#367) by downloading gtest zip and avoiding cloning 2020-06-28 07:54:53 -06:00
shiyuge
e639f6d800
fix typo in logworker.hpp (#365) 2020-06-24 07:31:26 -06:00
shiyuge
2206cea309
fix typo in shared_queue.hpp exampel -> example (#363) 2020-06-23 06:53:33 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
5ef196eed5
Manual addition of sink removal functionality from C++11 branch (#361)
* Added sink removal
* improved build script
2020-06-19 13:49:30 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
e0e03ed105
Update PULL_REQUEST_TEMPLATE.md 2020-06-19 13:48:32 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
a67711a2df
Update PULL_REQUEST_TEMPLATE.md 2020-06-19 13:45:39 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
f9005d13bf
Update PULL_REQUEST_TEMPLATE.md 2020-06-19 13:36:48 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
7f3159e17f
Pull request template is improved 2020-06-19 12:02:48 -06:00
xgdgsc
6d0eb32ddb
dead link ,header name, format (#359) 2020-06-19 07:53:24 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
e21f93944e
Update README.markdown 2020-06-06 16:40:36 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
f9ac8f5e08
improved documentation (#358) 2020-06-06 16:39:27 -06:00
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