Commit Graph

44 Commits

Author SHA1 Message Date
KjellKod
58a5fca8bd REmoved Google's performance test. If anyone is interested it can be found at g2log 2014-09-11 22:25:55 -06:00
KjellKod
afb55095ce Improvement from Sean LK's pull request. The dynamic library test is still just kept for Linux and GCC 2014-09-02 22:26:17 -06:00
Sean LK
c02fe626f8 Ensure Clang and AppleClang are recognized by CMake script
As of CMake 3.0, the CMAKE_<LANG>_COMPILER_ID variable can take on two
different values for Clang: "Clang" and "AppleClang", the latter
referring to the Clang distributed by Apple with Xcode.

Therefore, update the compiler check to match CMAKE_<LANG>_COMPILER_ID
against the regular expression ".*Clang".
2014-08-29 18:31:59 +00:00
KjellKod
183a513fd0 Cleanup to help for APPLE use, both Clang and GCC 2014-03-10 23:26:05 -06:00
KjellKod
33106756ec Corrected include 2014-03-09 00:47:09 -07:00
KjellKod
f5438d8232 Thanks to Rajesh to push for g3log support for "runtime loading of dynamic libraries" (that will use g3log, initiated in main)
Thanks to Dmitry (d-led) for this working proof-of-concept of this at: https://github.com/d-led/g2log-dll

--HG--
rename : g2log/src/g2LogMessageBuilder.cpp => g2log/src/g2logmessagecapture.cpp
rename : g2log/src/g2LogMessageBuilder.hpp => g2log/src/g2logmessagecapture.hpp
2014-03-08 23:33:49 -07:00
kjell@kjell-win7.hsd1.co.comcast.net.
ebc8ae22b7 VS2013: removed warnings 2014-02-26 07:00:08 +01:00
KjellKod
8220839771 Clang/Gcc bugfix:
Fixed g2logworker destructor race condition. Sinks and background thread were not cleared in the right order.
Now the order is enforced.

This means that g3log should work fine with Clang. CMakeLists.txt is updated to reflect the Clang support
2014-02-25 22:05:48 -07:00
kjell@kjell-win7.hsd1.co.comcast.net.
cc554ff2cc comment fix 2014-01-14 07:18:38 +01:00
KjellKod
5486bbceca Dynamic logging levels can be enabled with a define. All levels are by default ON 2014-01-08 22:48:18 -07:00
KjellKod
8d9f1bfea2 split FATAL examples into a SIGSEGV and a CONTRACT examplew 2013-12-19 22:51:47 -07:00
KjellKod
fe4862a96b Cleanup, added headers where they were missing. Removed default option ON for unit test. 2013-12-15 22:29:26 -07:00
Aleksey Dobrunov
781b1c1b5e add build target for mingw 2013-12-14 01:39:50 +06:00
Aleksey Dobrunov
768f6a3ae5 fix warning in CMakeLists.txt 2013-12-14 01:39:03 +06:00
KjellKod
f8c729ce1e dynamic logging levels are now possible. Use "#define G2_DYNAMIC_LOGGING" to get it. A slight performance penalty will result
but logging levels can then be turn on/off dynamically
2013-12-10 14:57:04 -07:00
KjellKod
43806018aa TODO: Remove all usage of shared_ptr,. passing with moved unique_ptr and by value will have a huge performance boost 2013-11-08 02:47:43 -07:00
KjellKod
60af9ac1ca Added crashing unit test for next time debugging
--HG--
rename : g2log/test_unit/test_sink_concept.cpp => g2log/test_unit/test_concept_sink.cpp
2013-08-20 23:40:39 -06:00
KjellKod
d254879890 Generic cleanup and bugfix after massive merge... still ongoing
--HG--
rename : g2log/test_unit/test_sink.cpp => g2log/test_unit/test_sink_concept.cpp
2013-08-18 23:18:18 -06:00
KjellKod
ab07e5978d Corrected the merging compile errors...
--HG--
rename : g2log/src/crashhandler.h => g2log/src/crashhandler.hpp
rename : g2log/src/g2logmessage.h => g2log/src/g2logmessage.hpp
rename : g2log/src/g2time.h => g2log/src/g2time.hpp
2013-07-29 22:43:33 -06:00
KjellKod
05018e389a commented out some unit test. corrected other's. rigth now I am pondering to
always keeping the file-handle known in the bglogger.
--- Alternatively there is no zink at startup except colored out maybe?
2013-07-23 22:01:12 -06:00
KjellKod
3c67023389 Internal for sinks added. Simple unit test added 2013-07-21 14:04:48 -06:00
KjellKod
c015191b83 unit test refactoring. g2log, safe to do shutdownlogging multiple times 2013-07-13 19:33:00 -06:00
KjellKod
3fb37b0709 cmake refactoring , adding of unit tests 2013-07-13 17:56:38 -06:00
KjellKod
062b92188c refactored cmake 2013-07-13 10:21:00 -06:00
KjellKod
75ecece72f no longer default: g2log unit test 2012-10-21 18:38:05 +02:00
KjellKod
a4c49a5549 Merged in changes from development repository.
* threadsafe use of localtime
* changing/retrieving log filename at runtime (using futures)
2012-10-14 01:54:56 +02:00
kjellkod@kjellkod-Asus.lan
d0042cf730 Workaround for two correlating issues
1) GTEST use own tuple library which clashes with c++11
2) MSVS variadic template implementation is so far only a *hack* and a define must be set to
   allow 10 variadic arguments
2012-06-24 21:43:23 +02:00
KjellKod
f82c0ec98d Updated for g++-4.7, which no longer requires justthreads c++11 thread implementation 2012-06-02 22:04:28 +02:00
kjell@kjell-win7.lan
1e7ef6de0a removed comment 2012-03-04 07:28:08 +01:00
kjell@kjell-win7.lan
2bb53f0d01 Added missing <thread> include. Updated comments regarding this in CMakeLists.txt 2012-03-04 02:14:50 +01:00
KjellKod
99fea9ed6f Fixed: internal time_keeping (time_point) was removed but was needed for g2logworker 2012-03-04 01:18:11 +01:00
KjellKod
121f8d0e2d Corrected comment about options that was just dated.
performance tests are OFF by default (only tested on linux)
unit tests are OFF by default (tested windows/linux but gtest must be unzipped)
2011-11-23 09:18:18 -06:00
KjellKod
8601bc1d7c bugfix: a comment lacked the # at line beginning 2011-11-21 18:20:11 -06:00
KjellKod
6d5f1f46ca Cosmetics: Corrected headers so that they look uniform. Added clarification in Readme about unpacking of gtest/glog for unit-test and performance tests 2011-11-21 17:04:02 -06:00
KjellKod
76bde84300 All except the Google glog performance test on windows is now OK on Linux/Windows
There are library errors for glog. On www there seems to be issues with glog on Windows. I am dropping it for now
2011-11-18 01:51:34 +01:00
KjellKod
4659afdeb5 Made sure the g2log performance tests + unit test are running on windows
(google performance test not tested yet on windows)
2011-11-17 22:46:38 +01:00
KjellKod
8c6a676648 Cosmetics. Updated instructions in README and CMakeFiles.txt
Added *printouts* to g2log-example to show that the last FATAL trigger is expected
2011-11-17 22:08:20 +01:00
Kjell Hedstrom
62089aad92 Enabling OPTIONS, by default only the g2log-example ON
performance test + unit tests are OFF. Enabling them is fixed in the CMakeLists.txt
2011-11-17 11:26:02 +01:00
Kjell Hedstrom
52c7ce4bed Fixed demangled symbols., thanks to stackoverlow http://stackoverflow.com/questions/77005/how-to-generate-a-stacktrace-when-my-gcc-c-app-crashes 2011-11-17 00:51:28 +01:00
Kjell Hedstrom
925581d338 Updated for better unit-testing. Unit testing does not abort but throws a std::runtime_error if FATAL 2011-11-16 22:23:47 +01:00
Kjell Hedstrom
b3b5335b90 implified tests 2011-11-15 01:46:07 +01:00
Kjell Hedstrom
b7240a610b Added signalhandler and a little bit of stackdump for linux.
BUGS: how to test fatal unit tests?
BUGS: the stack dump is fugly
2011-11-10 22:23:33 +01:00
Kjell Hedstrom
fa9e5b4adf Concentrated all files into src, previously it was under its own active-object sub-repository 2011-11-05 23:19:49 +01:00
Kjell Hedstrom
b9459af2f3 Initial commit of g2log after moving it to it's own repository from "KjellKOd" 2011-11-05 17:36:07 +01:00