Commit Graph

734 Commits

Author SHA1 Message Date
Chad Engler
d3f2d11ae6
Fix ARM compilation for windows. (#401) 2021-04-07 21:33:40 -06:00
lukeocamden
61f3f6e3db
Avoid copying LOGLEVELS for g3::logLevel call (#399)
* Avoid copy-constructing LEVELS for logLevel call
2021-01-26 12:49:10 -07:00
FriendlyFire
e28f559d32
C++20 compatability -- std::result_of with std::invoke_result (#392)
* Replaced result_of with invoke_result_t.
* Fixed a few compile errors and updated CMakeLists.
* Updated Cloud CI
2020-12-16 06:51:26 -07:00
Alvin
2fca06ff6d
Fix compiler warnings and condition check improvements (#390)
* fix compiler warnings

- loglevels.cpp - warns about double return if dynamic logging is on

- crash handler_unix.cpp - warns about unused variable
2020-11-23 21:23:13 -07:00
Alvin
c0ae589024
Alvin/minor fixes and improvements (#389)
* Fix typos
* Fix build for MinGW
- MinGW g++ doesn't recoganize `-rdynamic`
2020-11-17 20:40:26 -07:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
f1eff42b91
Update README.markdown 2020-08-08 08:40:17 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
9c6879226b
Update README.markdown 2020-08-07 23:10:58 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
3e1534eb81
Update API.markdown 2020-08-07 10:48:51 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
e32cee6c01
Update API.markdown 2020-08-07 10:48:07 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
dd4bb0f62c
Update API.markdown 2020-08-07 10:45:29 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
a4abb8b521
Update loglevels.hpp 2020-08-07 10:22:18 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
c2b1ff6475
Update loglevels.hpp 2020-08-05 12:30:09 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
e55c270753
Update loglevels.hpp 2020-08-05 12:28:17 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
b93e96ebf7
Update loglevels.hpp 2020-08-05 12:27:05 -06:00
Tian Xiao
5dd714b626
Fix some minor errors in API doc (#378)
* Typo in API doc

`SIGILL` and `SIGSEGV` were duplicated

* Fix the link to logrotate

Co-authored-by: Tian Xiao <tian.xiao@antelopetechnology.com>
2020-08-05 04:59:39 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
83737bbb8f
cpack version number (#376)
* cpack version number. Build number must be set since it's used by CPACK
2020-07-09 07:33:25 -06:00
Kjell Hedström : Available for new Engineering Leadership and Engineering Opportunities
69a0be4c9c
play/tryout: It is confusing to name the target g3logger. KISS --> g3log (#372)
* It is confusing to name the target g3logger. KISS --> g3log. This MIGHT break installations for some but it's a needed correction. 

* Updated version number to 2.1.x
2020-07-08 22:42:55 -06:00
shiyuge
8e79dd6554
bug fix: vsnprintf_s return value 0 isn't error (#373)
Conforming with vsnprintf_s
2020-07-06 21:21:28 -06:00
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