mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-14 11:06:58 +01:00
8c6a676648
Added *printouts* to g2log-example to show that the last FATAL trigger is expected
65 lines
1.9 KiB
Plaintext
65 lines
1.9 KiB
Plaintext
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_by_kjellkod.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)
|