2011-11-05 17:36:07 +01:00
HOW TO BUILD
===================
This g2log is a snapshot from KjellKod repository.
It contains what is needed to build example, unit test and performance test of g2log.
2011-11-17 11:47:52 +01:00
If you want to integrate g2log in your own software you need
the following files
2011-11-05 17:36:07 +01:00
g2log/src/
g2log.cpp/h
2011-11-17 11:47:52 +01:00
g2logworker.cpp/h
crashhandler.h (crashhandler_win.cpp or crashhandler_unix.cpp)
shared_queue.h
active.h/cpp
2011-11-05 17:36:07 +01:00
2011-11-17 11:47:52 +01:00
BUILDING g2log:
2011-11-05 17:36:07 +01:00
-----------
2011-11-17 11:47:52 +01:00
The default is to build an example binary 'g2log-example'
I suggest you start with that, run it and view the created log also.
If you are interested in the performance or unit tests then you can
enable the creation of them in the g2log/CMakeLists.txt file. See that file
for more details
2011-11-17 11:57:37 +01:00
--- Building on Linux ---
2011-11-05 17:36:07 +01:00
cd g2log
mkdir build
cd build
cmake ..
make
2011-11-17 11:57:37 +01:00
--- Building on Windows ---
Please use the "visual studio command prompt 2010"
cd g2log
mkdir build
cd build
2011-11-17 21:35:32 +01:00
cmake -G "Visual Studio 10" ..
2011-11-17 22:08:20 +01:00
msbuild g2log_by_kjellkod.sln
2011-11-17 11:57:37 +01:00
Debug\g2log-example.exe
2011-11-05 17:36:07 +01:00
CONTENTS
===========================
3rdParty -- gtest, glog.
-----------------------
Both are needed to compile the unit test and the logger comparison tests
gtest is included by the CMake and you don't need to do anything with it.
glog is not included and must be installed if you want to run the comparison tests
2011-11-17 11:47:52 +01:00
About the Active Object
2011-11-05 17:36:07 +01:00
--------------------
2011-11-17 11:47:52 +01:00
Is made with standard C++ components with the help of the latest C++0x and std::thread features (thanks to justthread). For more details see www.kjellkod.cc/active-object-with-cpp0x. An example is provided. Other examples on pre C++0x Active Objects can also be found at www.kjellkod.cc (code page)
2011-11-05 17:36:07 +01:00
2011-11-17 11:57:37 +01:00
If you like it (or not) it would be nice with some feedback. That way
I can improve g2log and it is also nice to see if someone is using it.
If you have ANY questions or problems please do not hesitate in contacting
2011-11-17 22:58:40 +01:00
me on my blog http://kjellkod.wordpress.com/2011/11/17/kjellkods-g2log-vs-googles-glog-are-asynchronous-loggers-taking-over/
or at <Hedstrom at KjellKod dot cc>
2011-11-05 17:36:07 +01:00
2011-11-17 11:57:37 +01:00
Good luck :)
2011-11-05 17:36:07 +01:00
2011-11-17 11:57:37 +01:00
Cheers
Kjell (a.k.a. KjellKod)