Commit Graph

537 Commits

Author SHA1 Message Date
Andreas Schönle
c8e9dc367c Merge branch 'master' into arm-fix 2016-12-06 12:01:16 +01:00
Andreas Schönle
7ece784109 Merge branch 'master' into windows-time-fix 2016-12-06 12:00:30 +01:00
Andreas Schönle
cb3e2b1336 Merge branch 'master' into include-file-path-only 2016-12-06 12:00:01 +01:00
Andreas Schönle
b43848c527 Merge branch 'master' into add-levels-only 2016-12-06 11:59:21 +01:00
Kjell Hedström
d9413181d3 Merge pull request #136 from KjellKod/KjellKod-Travis-test
Update .travis.yml
2016-12-05 23:55:17 -07:00
Kjell Hedström
1a27d6379f thanks to: https://github.com/PacificBiosciences/pbbam/blob/master/.travis.yml 2016-12-05 23:49:32 -07:00
Kjell Hedström
8cc59bece2 more sudo 2016-12-05 23:31:46 -07:00
Kjell Hedström
fc1f531d1d sudo change reverted 2016-12-05 23:29:43 -07:00
Kjell Hedström
c70fd4f978 space removed 2016-12-05 23:26:14 -07:00
Kjell Hedström
10150e7633 key-space issues, fixed1 2016-12-05 23:23:16 -07:00
Kjell Hedström
aed15716ad test3 2016-12-05 23:16:48 -07:00
Kjell Hedström
296b91d857 test2 2016-12-05 23:10:28 -07:00
Andreas Schönle
f1f2167864 Update API.markdown
Added description of addLogLevel function
2016-12-05 11:21:40 +01:00
SchoenleAndi
7d1481724c restore needs a flag to remove custom levels (at least the tests need to be able to do it)
addLogLevel again resets the log level to the passed enable_state as even requesting the level before adding it would otherwise lead to unexpectedly not setting a "new" level to the passed state. We now assume setLogLevel is not called before addLogLevel without considering this behavior.
2016-12-05 11:12:28 +01:00
SchoenleAndi
a98b91fc5c ensure that raise(SIGTERM) is not called in test if g3log was compiled without fatal signal handler 2016-12-05 10:48:52 +01:00
SchoenleAndi
a1748ce66b addLogLevel now plays nice with having called setLogLevel before. 2016-12-05 10:17:38 +01:00
SchoenleAndi
bb163ea376 Merge branch 'master' into windows-time-fix 2016-12-04 19:20:22 +01:00
SchoenleAndi
9436660109 Merge branch 'master' into arm-fix 2016-12-04 19:18:50 +01:00
SchoenleAndi
b1088d06ab Merge branch 'master' into include-file-path-only 2016-12-04 19:17:39 +01:00
SchoenleAndi
323ca8e7ce Merge branch 'master' into add-levels-only 2016-12-04 19:15:51 +01:00
Kjell Hedström
0624e8c655 Update .travis.yml
Ref: discussion at https://github.com/travis-ci/travis-ci/issues/4631
2016-12-04 08:32:45 -07:00
SchoenleAndi
069085c451 fix timing inaccuracy on windows 2016-12-04 16:09:23 +01:00
Kjell Hedström
d15fcb3776 Update .travis.yml
Dummy trigger to travis
2016-12-04 07:17:21 -07:00
Kjell Hedström
426e77943e Merge pull request #126 from dasmysh/master
Updated cmake version to correct string compare behaviour.
2016-12-04 07:15:54 -07:00
Kjell Hedström
1ba64d5e09 Merge pull request #134 from KjellKod/KjellKod-trigger-travis-1
trigger travis
2016-12-02 10:22:25 -07:00
Kjell Hedström
5a0e730d0c assume yes for interactive check 2016-12-02 10:16:46 -07:00
Kjell Hedström
0fd9cb8408 trigger travis
test
2016-12-02 10:13:02 -07:00
Kjell Hedström
0fdccaf823 Update .travis.yml
Upgrade travis cmake version
2016-12-02 10:10:01 -07:00
SchoenleAndi
e93031c6d0 compiles on arm 2016-12-02 17:01:16 +01:00
Kjell Hedström
813e3da1f9 Merge pull request #129 from AbberiorInstruments/msvc-format-specifier
MSVC printf format specifier
2016-10-20 13:37:16 -06:00
Kjell Hedström
570a85b997 Merge pull request #128 from AbberiorInstruments/DBUG-vs-DEBUG
Fix compilation errors when CHANGE_G3LOG_DEBUG_TO_DBUG is enabled-
2016-10-20 13:35:17 -06:00
SchoenleAndi
1dafdaf2a4 msfc fromat specifiers added 2016-10-19 13:41:48 +02:00
SchoenleAndi
c39e77c27e DBUG-vs-DEBUG in main_ programs fixed 2016-10-19 13:39:24 +02:00
SchoenleAndi
940d11a61d DBUG vs DEBUG fixed in unit test, too 2016-10-19 13:36:19 +02:00
SchoenleAndi
c467851423 save include fil full path as const char * in LogMessage 2016-10-19 13:21:52 +02:00
SchoenleAndi
09ede1bf1f add loglevels to upstream master only 2016-10-19 13:17:46 +02:00
Sebastian Maisch
e7af386de2 Updated cmake version to correct string compare behaviour. 2016-10-17 19:49:56 +02:00
Kjell Hedström
ba81287ca5 bugfix time formatting (#119)
* bugfix time formatting

* fixit
2016-08-30 18:34:13 -06:00
Lynn
1bae2e6a68 Typo fix (Vaulue → Value) (#120)
* typo fix (Vaulue → Value)

* typo fix (Vaulue → Value)
2016-08-30 11:10:58 -06:00
Kjell Hedstrom
e0fb4fd24e fixit 2016-08-25 00:51:21 -06:00
Kjell Hedstrom
26f76cd103 bugfix time formatting 2016-08-25 00:49:17 -06:00
Kjell Hedström
1496d7aa40 Update API.markdown (#115) 2016-08-18 00:49:49 -06:00
Kjell Hedström
7d6bf2fac5 Update README.markdown (#114)
* Update README.markdown

* Update README.markdown

* Update README.markdown

* Update README.markdown

* Update README.markdown
2016-08-18 00:37:28 -06:00
Kjell Hedström
9b8e13bcfe Update crashhandler.hpp (#110)
Thanks to @graugans
2016-08-11 07:08:41 -06:00
Kjell Hedström
86473c60e0 Gimesketvirtadien's time requested changes (#104)
* Added "removeSink" method and related functionality to LogWorker API

* Added a new API for plugging in custom Timestamp generator.

* Revert "Added "removeSink" method and related functionality to LogWorker API"

This reverts commit c9cee5d9a0.

* Dropping shared_ptr<Timestamp> in log messages and using regular vars

* Moving to standard timespec struct from custom Timestamp

* Wiring timespec timestamps with formating routine

* Falling back to clock_gettime

* Reverting g3 API changes

* Optimizing format string generation

* Removed _microseconds from LogMessage

* Implemented sec fractional format key

* Optimization of format string generation

* Adjusting comments

* Refining localtime_formatted by introducing two helper functions

* refactored and simplified code

* fixed up some commented away unit tests

* refactoring message specifics tests to it's own test

* Use gcc 4.9

* C++14 for Linux

* Update .travis.yml

* Update buildAndRunTests.sh

* lower case in `-std=c++14`

* -lrt flag for gcc

* Added support for high precision clock on Linux/gcc (already there now for OSX). Windows is still missing

* intermediate comments

* Clarified for some code readers the mysterious use of assert in an expression that is always true

* refactored + renamed functions and constants. Added unit test for retrieving fractional type

* committing changes previously fixed - finished unit testing for g3::internal::time::GetFractional(..)

* added unit test for fractional to string

* added missing unit tests for localtime_formatted

* fixed? nano / microsec functionality to timer

* test
2016-08-11 00:27:52 -06:00
jkhoogland
ff722164d4 Warning braces loglevels clang 3.7 (#108)
* Fix gcc compiler warning for braces around scalar

* use 'toString' to get the formatted output in the fatal cerr message when a LOG fatal or CONTRACT happens. This was already OK on the sink side

* Avoid initialization/shutdown deadlock that could occur due to wrong use of the API

* Workaround for windows testing (#100)

* added automatic linking pragma for `StackWalk64` (#96)

* fix to implicit type casting (#98)

* create a Xcode project

* fixed to implicit type casting

* Revert "create a Xcode project"

This reverts commit e3216391f5.

* Fixed a bug causing cross-compilers to fail (#101)

(The edited line eliminated the original CXXFLAGS variable, removing the sysroots parameter, which is needed for cross compiling)

* Update logworker.cpp (#103)

* Fix gcc compiler warning for braces around scalar

* Add back braces
2016-07-31 17:01:54 -06:00
Kjell Hedström
e0d4434428 Update logworker.cpp (#103) 2016-06-23 21:35:59 -06:00
Nitaym
56b3f20517 Fixed a bug causing cross-compilers to fail (#101)
(The edited line eliminated the original CXXFLAGS variable, removing the sysroots parameter, which is needed for cross compiling)
2016-06-22 14:29:45 -04:00
Kjell Hedström
04817b6e85 Workaround for windows testing (#100) 2016-06-12 16:58:14 -06:00
Dmitry Ledentsov
f10fbe1d9c added automatic linking pragma for StackWalk64 (#96) 2016-06-12 16:57:55 -06:00