KjellKod
ece13751a8
Added empty travis yml file
2014-10-09 22:52:33 -06:00
KjellKod
1f071b3f6e
draft of ubuntu cpack... installing into /usr/local
2014-10-09 22:04:26 -06:00
KjellKod
0e37df7162
cleanup. Use G3Log instead of G2Log for binaries and configuration files
2014-10-03 01:53:21 -06:00
KjellKod
c99b1089c2
Updated .ignore file
2014-10-03 01:22:29 -06:00
KjellKod
87a095e384
Renamed directories for a cleaner project structure
...
--HG--
rename : g2log/Build.cmake => Build.cmake
rename : g2log/CMakeLists.txt => CMakeLists.txt
rename : g2log/CPackLists.txt => CPackLists.txt
rename : g2log/Dynamic.cmake => Dynamic.cmake
rename : g2log/example/Example.cmake => example/Example.cmake
rename : g2log/example/main_contract.cpp => example/main_contract.cpp
rename : g2log/example/main_sigsegv.cpp => example/main_sigsegv.cpp
rename : g2log/src/active.hpp => src/active.hpp
rename : g2log/src/crashhandler.hpp => src/crashhandler.hpp
rename : g2log/src/crashhandler_unix.cpp => src/crashhandler_unix.cpp
rename : g2log/src/crashhandler_win.cpp => src/crashhandler_win.cpp
rename : g2log/src/g2filesink.cpp => src/g2filesink.cpp
rename : g2log/src/g2filesink.hpp => src/g2filesink.hpp
rename : g2log/src/g2filesinkhelper.ipp => src/g2filesinkhelper.ipp
rename : g2log/src/g2future.hpp => src/g2future.hpp
rename : g2log/src/g2log.cpp => src/g2log.cpp
rename : g2log/src/g2log.hpp => src/g2log.hpp
rename : g2log/src/g2loglevels.cpp => src/g2loglevels.cpp
rename : g2log/src/g2loglevels.hpp => src/g2loglevels.hpp
rename : g2log/src/g2logmessage.cpp => src/g2logmessage.cpp
rename : g2log/src/g2logmessage.hpp => src/g2logmessage.hpp
rename : g2log/src/g2logmessagecapture.cpp => src/g2logmessagecapture.cpp
rename : g2log/src/g2logmessagecapture.hpp => src/g2logmessagecapture.hpp
rename : g2log/src/g2logworker.cpp => src/g2logworker.cpp
rename : g2log/src/g2logworker.hpp => src/g2logworker.hpp
rename : g2log/src/g2moveoncopy.hpp => src/g2moveoncopy.hpp
rename : g2log/src/g2sink.hpp => src/g2sink.hpp
rename : g2log/src/g2sinkhandle.hpp => src/g2sinkhandle.hpp
rename : g2log/src/g2sinkwrapper.hpp => src/g2sinkwrapper.hpp
rename : g2log/src/g2time.cpp => src/g2time.cpp
rename : g2log/src/g2time.hpp => src/g2time.hpp
rename : g2log/src/shared_queue.hpp => src/shared_queue.hpp
rename : g2log/src/std2_make_unique.hpp => src/std2_make_unique.hpp
rename : g2log/src/stlpatch_future.hpp => src/stlpatch_future.hpp
rename : g2log/test_performance/Performance.cmake => test_performance/Performance.cmake
rename : g2log/test_performance/main_threaded_mean.cpp => test_performance/main_threaded_mean.cpp
rename : g2log/test_performance/main_threaded_worst.cpp => test_performance/main_threaded_worst.cpp
rename : g2log/test_performance/performance.h => test_performance/performance.h
rename : g2log/test_unit/Test.cmake => test_unit/Test.cmake
rename : g2log/test_unit/test_concept_sink.cpp => test_unit/test_concept_sink.cpp
rename : g2log/test_unit/test_configuration.cpp => test_unit/test_configuration.cpp
rename : g2log/test_unit/test_filechange.cpp => test_unit/test_filechange.cpp
rename : g2log/test_unit/test_io.cpp => test_unit/test_io.cpp
rename : g2log/test_unit/test_linux_dynamic_loaded_sharedlib.cpp => test_unit/test_linux_dynamic_loaded_sharedlib.cpp
rename : g2log/test_unit/test_sink.cpp => test_unit/test_sink.cpp
rename : g2log/test_unit/tester_sharedlib.cpp => test_unit/tester_sharedlib.cpp
rename : g2log/test_unit/tester_sharedlib.h => test_unit/tester_sharedlib.h
rename : g2log/test_unit/testing_helpers.cpp => test_unit/testing_helpers.cpp
rename : g2log/test_unit/testing_helpers.h => test_unit/testing_helpers.h
2014-10-03 01:20:33 -06:00
KjellKod
2bf3017021
BETA CPack
2014-10-03 01:04:26 -06:00
KjellKod
0f971e67b3
Updated cmake
2014-10-03 01:03:56 -06:00
KjellKod
8c89eebade
renama example directory
...
--HG--
rename : g2log/test_example/Example.cmake => g2log/example/Example.cmake
rename : g2log/test_example/main_contract.cpp => g2log/example/main_contract.cpp
rename : g2log/test_example/main_sigsegv.cpp => g2log/example/main_sigsegv.cpp
2014-10-03 00:57:38 -06:00
KjellKod
19b17b9d94
Cleanup of cmake structure
2014-10-03 00:56:13 -06:00
KjellKod
73c6066c66
Removed obsolete gtest and Qt project file
2014-09-11 22:37:37 -06:00
KjellKod
b69d47c174
removed obsolete readme for 3rdparty
2014-09-11 22:29:50 -06:00
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
0931a611ed
Some test_io FATAL unit tests were memory sensitive. Added robustness by making the fatal exit message static
2014-09-02 22:59:50 -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
Kjell Hedström
3eb2ea5e08
README.markdown edited online with Bitbucket
2014-08-07 03:57:31 +00:00
Kjell Hedström
71791d072a
README.markdown edited online with Bitbucket
2014-08-07 03:57:10 +00:00
Kjell Hedström
0eb4b28393
README.markdown edited online with Bitbucket
2014-08-07 03:56:44 +00:00
Kjell Hedström
f09747fba0
README.markdown edited online with Bitbucket
2014-08-07 03:52:16 +00:00
KjellKod
7fbdd34246
Added license and license referral to avoid any license confusion. G3log is a public domain dedication. Ref the unlicense.org
2014-07-03 15:42:19 -06:00
KjellKod
98ec05db7b
Added threadID in case someone wants that. The std: 🧵 :id is looong. cutting it down would be nice,. but that is a job for the client
2014-05-25 01:38:03 -06:00
KjellKod
9be8f49f66
VTune performance .... from 4us on average (dual threads performance test) to 3us avarage
2014-05-25 01:09:50 -06:00
KjellKod
fafa4cf96a
Added handling for the the user might have buggy adding of sinks
2014-04-29 07:47:35 -06:00
KjellKod
f0c3a43c3a
spell check
2014-04-29 00:10:58 -06:00
KjellKod
c00981fad0
Bugfixes and improvments. Thanks to Csaba with team.
...
Bugfixes: Initialization/Destruction order was wrong. This would cause a shutdown race condition.
Improvements: Skipped pimpl (no hiding necessary), pointer comparison in g2log.cpp, clarified shutdown safety with comment in ~LogWorker
Unit tests: Added agressive shutdown test in test_sinks.cpp
2014-04-28 23:46:42 -06:00
KjellKod
e54706d77b
std::formard of args in sink
2014-04-12 00:45:19 -06:00
KjellKod
33d6378e01
std::forward arguments. Actually this helped in reducing worst case performance
2014-04-12 00:18:30 -06:00
KjellKod
183a513fd0
Cleanup to help for APPLE use, both Clang and GCC
2014-03-10 23:26:05 -06:00
KjellKod
03bece5bf8
Added another sink to get even more data flow through the test
2014-03-10 23:25:38 -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
KjellKod
0bfd6cb97b
Readme. fixup
2014-02-25 23:18:18 -07:00
KjellKod
9fa3acf2cb
Readme. Build instructions
2014-02-25 23:16:59 -07:00
KjellKod
77653a1d3b
Updated REAME. Tested with Clang
2014-02-25 23:14:50 -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
KjellKod
a5765af28d
Added gtest 1.7,. but will keep gtest 1.6 for now as well in case of issues with older compilers
2014-02-25 22:03:45 -07:00
KjellKod
59269ec351
Removed vs2013 warning. Previously the exception was ignored.
2014-02-24 00:29:50 -07:00
KjellKod
40a6e99bc0
Work around for bug in VS2013. Reported here: http://www.beta.microsoft.com/VisualStudio/feedback/details/757472/c-concurrency-task-and-std-bind
...
"auto" did not cut it apparently.
2014-02-24 00:23:43 -07:00
KjellKod
956da51317
Thanks to Aleksey Dobrunov who noticed this compile error. Weird that it did not show up in gcc
2014-02-24 00:21:57 -07:00
KjellKod
1ed4bcb38c
Bugfix: sinkhandle can now be used to call, asynchronously, functions with more return types than std::string
2014-02-11 20:00:20 -07:00
KjellKod
ffb4d86c1e
Improvement: Shutdownlogging is now called AUTOMATICALLY at LogWorker scope exit/destruction. If for some reason (mistake or unit testing) multiple LogWorkers are created then
...
only the one that is g2::initialized(...) can cause a shutDownLogging when it is destructed.
2014-02-02 23:49:24 -07:00
KjellKod
02543e817a
VS2013 must be used,
2014-01-28 09:19:58 -07:00
KjellKod
0c1845ee18
Avoid premature wakeup from reader thread by doing the notify AFTER the mutex is released
...
http://www.justsoftwaresolutions.co.uk/threading/implementing-a-thread-safe-queue-using-condition-variables.html
2014-01-24 13:17:10 -07:00
KjellKod
63616d2acd
performance increase by using internal unique_ptr for the sink instead of shared_pointer.
...
Better average (10-15%), and much, much, much better worst case
2014-01-19 22:55:44 -07:00
kjell@kjell-win7.hsd1.co.comcast.net.
d0045de73b
spell check
2014-01-17 09:06:11 +01:00
kjell@kjell-win7.hsd1.co.comcast.net.
460f16d5f4
text
2014-01-17 09:01:28 +01:00
kjell@kjell-win7.hsd1.co.comcast.net.
82095de062
code examples
2014-01-17 08:47:01 +01:00
kjell@kjell-win7.hsd1.co.comcast.net.
f3388a66df
...
2014-01-17 08:46:15 +01:00
kjell@kjell-win7.hsd1.co.comcast.net.
e558d3baed
code example of handle
2014-01-17 08:45:12 +01:00