Go to file
2011-11-17 11:57:37 +01:00
3rdParty implified tests 2011-11-15 01:46:07 +01:00
g2log Enabling OPTIONS, by default only the g2log-example ON 2011-11-17 11:26:02 +01:00
test_main Initial commit of g2log after moving it to it's own repository from "KjellKOd" 2011-11-05 17:36:07 +01:00
README Updated README with build instructions for Windows 2011-11-17 11:57:37 +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. 

If you want to integrate g2log in your own software you need 
the following files
g2log/src/
     g2log.cpp/h
     g2logworker.cpp/h
     crashhandler.h (crashhandler_win.cpp or crashhandler_unix.cpp)
     shared_queue.h
     active.h/cpp


BUILDING g2log: 
-----------
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

--- Building on Linux ---
cd g2log
mkdir build
cd build 
cmake ..
make

--- Building on Windows ---
Please use the "visual studio command prompt 2010"
cd g2log
mkdir build
cd build
cmake -G "Visual Studio 10"
msbuild g2log-example.sln
Debug\g2log-example.exe


      
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


About the Active Object
--------------------
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)

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
me on my blog or at <Hedstrom at KjellKod dot cc>

Good luck :)

Cheers
Kjell (a.k.a. KjellKod)