Commit Graph

585 Commits

Author SHA1 Message Date
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
Jeff Ebert
408061280f restore original sigaction in restoreSignalHandler (#254)
* restore original sigaction in restoreSignalHandler

- Save original sigactions in a map called gSavedSigActions
- In restoreSignalHandler, do nothing if there is no saved sigaction.
  If there is a saved sigaction, then re-install it.
- Fixes issue #253

* fix bug found in code review of PR #254

* add functions for reporting sigaction errors

- Factor out reportSigactionError functions from functions that
  call sigaction to allow unit testing.
- Use strsignal libc function to convert from signal number to name
  to eliminate chance of not finding the name in {g,k}Signals maps.

* cleanup. perror doesn't need a wrapper. put code under test
2018-03-25 21:43:49 -06:00
Kjell Hedström
14db37ad23
G3log placeholder thread ID formatting (#248)
* Added thread ID configurable through API calls. Left to do g3sinks, documentation and some corner test cases for CHECK, LOG(FATAL) and FATAL signal

* improve test script, break if error

* easier to use API. Api docs added

* Update API.markdown

* Update API.markdown

* Update API.markdown

* updated readme with details for overriding default for "full details"

* updated custom sink with custom formatting example
2018-03-08 09:16:12 -07:00
Kjell Hedström
f2b860a2b4
Addressing the std2 concern raised in https://github.com/KjellKod/g3log/issues/212 (#246) 2018-02-20 22:02:19 -07:00
Петр Шургалин
217f52fb12 CMake: CMAKE_INSTALL_PREFIX for Linux (#243)
* CMake: CMAKE_INSTALL_PREFIX for Linux

If on Linux system CMAKE_INSTALL_PREFIX is set it overrides
CPACK_PACKAGING_INSTALL_PREFIX key.

* Readme: readme for MinGW building and installation

* Update README.markdown
2018-01-08 21:22:08 -07:00
Петр Шургалин
11f9f06f5c CMake: add install rule (#241)
* CMake: add MinGW install rule

* CMake: relative packaging paths
2017-12-27 13:09:40 -07:00
Kjell Hedström
c79695c387
Update CMakeLists.txt 2017-12-20 12:24:00 -07:00
Kjell Hedström
287bfc11cb
Update CMakeLists.txt 2017-12-20 12:09:41 -07:00
Петр Шургалин
a2ed65600b CMake: fix CMake version check on windows (#240)
CMake was telling that my version 3.10.1 is lesser thar 3.4
2017-12-20 10:32:36 -07:00
maj-tom
0ddfd6dccc Fix dangling else in LOG and LOGF macros (#231)
* Fix dangling else in LOG and LOGF macros
Closes #224

* added unit test
2017-12-06 21:31:55 -07:00
PeasantCodeFarmer
e7d3b9d7b1 Comment change for issue #232 (#237)
* Fixing some English/typos and a cyclical header include.

* Comment fix for issue# 232
2017-12-04 18:24:55 -07:00
Jean-Christophe Fillion-Robin
0005e14a9c cmake: Avoid extra recompilation updating generated_definitions.hpp only if needed (#235)
This commit updates the build system to ensure the generated_definitions
header is updated only if its content changed. This will avoid recompilation
if the re-configured without changing any options.
2017-12-02 17:21:56 -07:00
PeasantCodeFarmer
b4be5a0f00 Fixing some English/typos and a cyclical header include. (#234) 2017-11-22 07:41:35 -07:00
Matt Patterson
b3cb1ba057 atomicbool.hpp needs EOF outside of comment to build on VS15 (#229) 2017-10-26 18:37:37 -06:00
spinorx
28105e08d7 Support full filenames in logs. (#226)
This is helpful for doing cut and paste of filenames when opening.
Also fixed couple of macro parentheses.
2017-10-11 12:59:46 -06:00
mobileben
833b22d23b iOS Support (#183) (#198) 2017-09-26 21:33:08 -06:00
Kjell Hedsröm
96d6cda239 fixed comparison warning 2017-09-23 19:16:51 -06:00
mobileben
93c05406d8 Add in support for configurable kMaxMessageValue #203 (#208)
* Add in support for configurable kMaxMessageValue #203

* Add in documentation for USE_G3_DYNAMIC_MAX_MESSAGE_SIZE
2017-09-08 22:51:46 -06:00
maj-tom
97c6cf45b3 Update filesink.cpp (#216) 2017-07-19 13:16:50 -06:00
Thomas ten Cate
2a8ebca2d7 Remove double flushed from example (#214)
It's gone since e31c204
2017-07-13 07:01:00 -06:00