Commit Graph

445 Commits

Author SHA1 Message Date
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
JiHyung Lee
736d6437b8 fix to implicit type casting (#98)
* create a Xcode project

* fixed to implicit type casting

* Revert "create a Xcode project"

This reverts commit e3216391f5.
2016-06-12 14:09:55 -06:00
Kjell Hedström
e58cc942dd Merge pull request #94 from KjellKod/Fatal_exit_For_Erronous_Initialization
Avoid initialization/shutdown deadlock
2016-05-23 22:34:41 -06:00
Kjell Hedstrom
70b37d66a0 Avoid initialization/shutdown deadlock that could occur due to wrong use of the API 2016-05-23 22:25:32 -06:00
Kjell Hedström
6c1698c4f7 Merge pull request #86 from KjellKod/cerr_when_fatal_exit
use 'toString' to get the formatted output in the fatal cerr message …
2016-03-30 16:42:43 -06:00
Kjell Hedstrom
bfe1e8ad19 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 2016-03-30 16:35:38 -06:00
Kjell Hedström
7d0779d92d Merge pull request #84 from KjellKod/checkmarx-update
removed false positives as detected by Checkmarx code analysis tool. …
2016-03-24 11:21:43 -06:00
Kjell Hedström
4472ba3cbf fix the tool, not the code 2016-03-24 10:43:09 -06:00
Kjell Hedström
d01dfbf992 revert "fix" for issue with checkmarx. The tool should be fixed, not the code 2016-03-24 10:41:23 -06:00
Kjell Hedstrom
8df4eadd92 removed false positives as detected by Checkmarx code analysis tool. Not impressed so far though with the tool 2016-03-18 10:50:59 -06:00
Kjell Hedström
db23383aea Merge pull request #83 from KjellKod/duedal-install-target
Duedal install target
2016-03-06 23:04:00 -07:00
Kjell Hedsröm
33003af08b fixed user com 2016-03-06 23:02:04 -07:00
Kjell Hedsröm
0bd43a9ef2 start of replacement for: https://github.com/KjellKod/g3log/pull/74/files 2016-03-06 15:55:35 -07:00
Kjell Hedström
5790c3723f Merge pull request #80 from KjellKod/Thread_local
Update stacktrace_windows.cpp
2016-02-24 19:16:09 -07:00
Kjell Hedström
56cef7959c Merge pull request #82 from KjellKod/repace-g3log-in-path
Repace g3log in path
2016-02-17 00:31:15 -07:00
Kjell Hedsröm
fbddb5a5ca added new API for AddDefaultLogger to API 2016-02-17 00:25:55 -07:00
Kjell Hedsröm
b7704b1ed7 fixed merge conflict 2016-02-17 00:06:45 -07:00
Kjell Hedsröm
1ebaf0e7e5 fixed conflict 2016-02-16 23:16:22 -07:00
Kjell Hedström
af505d572a Merge pull request #81 from KjellKod/path_parenthesis_fix
Allow parenthesis in path and filename
2016-02-16 23:00:23 -07:00
Kjell Hedsröm
072a7bef93 put back commented out code 2016-02-16 22:57:02 -07:00
Kjell Hedsröm
fb034e1000 fixed commented out code, left it but corrected 2016-02-16 22:56:21 -07:00
Kjell Hedsröm
a0b961ee04 Allow parenthesis in path and filename 2016-02-16 22:52:38 -07:00
Kjell Hedström
279587c567 Update stacktrace_windows.cpp
For access to thread_local definition
2016-02-16 20:55:28 -07:00
Jiri Hoogland
e981b08c81 Put include headers back per request of Kjell 2016-02-03 18:19:36 -05:00
Jiri Hoogland
b8f28d3a49 Fix missing include files 2016-02-02 19:05:29 -05:00
Kjell Hedström
579579962c Merge pull request #77 from sradigan/FixLinuxClangSupport
Fixed build options to allow compilation on linux using clang
2016-02-02 16:02:35 -07:00
Sean Radigan
a65b99087b Fixed build options to allow compilation on linux using clang 2016-02-02 16:30:44 -05:00
Jiri Hoogland
3aab24d8c8 Handle empty logger_id 2016-01-28 10:06:40 -05:00
Jiri Hoogland
31c01b168c Add ability for user to override 'g3log' monniker in log file 2016-01-28 10:02:22 -05:00
Jiri Hoogland
d9bc515ce8 Add ability for user to override 'g3log' monniker in log file 2016-01-27 18:51:02 -05:00
Aleksey Dobrunov
69e0cafee8 fix unit test 2016-01-27 13:56:14 -05:00
Aleksey Dobrunov
0384eb1638 fix build lib 2016-01-27 13:56:14 -05:00
Aleksey Dobrunov
c9e93c8d14 remove unused include 2016-01-27 13:56:14 -05:00
Hans Duedal
1847312bac Enable an install target
Should work fine on Unix systems, and support install prefixes.
Installs both a static and a shared library to the same location, so we
get an .a and a .so/.dylib file, which can be linked to in the ordinary
way, ie. `-lg3logger`.
2016-01-24 13:27:52 +01:00
Kjell Hedström
1c6ede6db4 Merge pull request #72 from colorer/unused_includes
remove unused include
2016-01-11 12:38:26 -07:00
Aleksey Dobrunov
444642f47b fix unit test 2016-01-11 23:48:56 +05:00
Aleksey Dobrunov
1f4ffbeb6f fix build lib 2016-01-11 23:47:00 +05:00
Aleksey Dobrunov
12beaf89de remove unused include 2016-01-11 00:41:05 +05:00
Kjell Hedström
31d12dc090 Merge pull request #66 from guanqun/patch-1
trivial fix: add double quote around "some text"
2015-12-01 09:53:12 -07:00
Lu Guanqun
901b0d74e6 trivial fix: add double quote around "some text" 2015-12-02 00:10:48 +08:00
Kjell Hedström
501b16ffbd Merge pull request #65 from cstamatopoulos/missing_import_lib_msvc
#13 generate import lib in msvc using cmake >= 3.4
2015-12-01 05:51:48 -07:00
Kjell Hedström
e97656b902 Merge pull request #56 from turenar/thread_local
suppress 'thread attribute directive ignored' warning on mingw
2015-11-26 19:31:34 -07:00
cstamatopoulos
d125990007 #13 generate import lib in msvc using cmake >= 3.4 2015-11-26 19:13:45 -05:00