GithubHelp home page GithubHelp logo

johnwbyrd / logog Goto Github PK

View Code? Open in Web Editor NEW
45.0 45.0 15.0 4.22 MB

logog is a portable C++ library to facilitate logging of real-time events in performance-oriented applications, such as games. It is especially appropriate for projects that have constrained memory and constrained CPU requirements.

C++ 48.43% CMake 51.57%

logog's People

Contributors

bilke avatar eropple avatar ixe013 avatar johnwbyrd avatar kshahar avatar mpapierski avatar rbento avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

logog's Issues

Not able to "make"

Following were the output of "cmake" command:
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/g++
-- Check for working CXX compiler: /usr/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/Desktop/logog-master/build

After that, following were the output of "make" command in the build folder:
Scanning dependencies of target logog
[ 6%] Building CXX object CMakeFiles/logog.dir/src/api.cpp.o
[ 12%] Building CXX object CMakeFiles/logog.dir/src/checkpoint.cpp.o
[ 18%] Building CXX object CMakeFiles/logog.dir/src/formatter.cpp.o
[ 25%] Building CXX object CMakeFiles/logog.dir/src/lobject.cpp.o
[ 31%] Building CXX object CMakeFiles/logog.dir/src/lstring.cpp.o
[ 37%] Building CXX object CMakeFiles/logog.dir/src/message.cpp.o
[ 43%] Building CXX object CMakeFiles/logog.dir/src/mutex.cpp.o
[ 50%] Building CXX object CMakeFiles/logog.dir/src/node.cpp.o
[ 56%] Building CXX object CMakeFiles/logog.dir/src/platform.cpp.o
[ 62%] Building CXX object CMakeFiles/logog.dir/src/socket.cpp.o
[ 68%] Building CXX object CMakeFiles/logog.dir/src/statics.cpp.o
[ 75%] Building CXX object CMakeFiles/logog.dir/src/target.cpp.o
[ 81%] Building CXX object CMakeFiles/logog.dir/src/timer.cpp.o
[ 87%] Building CXX object CMakeFiles/logog.dir/src/topic.cpp.o
[ 93%] Building CXX object CMakeFiles/logog.dir/src/unittest.cpp.o
Linking CXX static library liblogog.a
[ 93%] Built target logog
Scanning dependencies of target test-logog
[100%] Building CXX object CMakeFiles/test-logog.dir/test/test.cpp.o
Linking CXX executable test-logog
CMakeFiles/test-logog.dir/test/test.cpp.o: In function logog::Thread::Start()': test.cpp:(.text._ZN5logog6Thread5StartEv[_ZN5logog6Thread5StartEv]+0x29): undefined reference topthread_create'
CMakeFiles/test-logog.dir/test/test.cpp.o: In function logog::Thread::WaitFor(logog::Thread const&)': test.cpp:(.text._ZN5logog6Thread7WaitForERKS0_[_ZN5logog6Thread7WaitForERKS0_]+0x1c): undefined reference topthread_join'
collect2: error: ld returned 1 exit status
make[2]: *** [test-logog] Error 1
make[1]: *** [CMakeFiles/test-logog.dir/all] Error 2
make: *** [all] Error 2

Any ideas why this might be happening?

Basic support for IBM's XLC Compiler on AIX

Hi,
We're looking at using logog on AIX 6.1 with IBM's XLC compiler (specifically version 10.1)
This has support for TR1 syntax.

I've made some very simple additions to the platform.hpp to allow it to detect both the AIX platform and the IBM XLC compiler.

Will add a pull request and include that here.

Thanks,

Brett

typos

target.hpp, line 34, in the comments: occurring (double r)
target.cpp: line 127, in the comments: outputs (remove ', lowercase)
node.cpp, line 76, in the comments: if (not double f)

OS X no longer uses TR1 for unordered_map

Hey there - was going to make a pull request, but it's a one-line change. :) OS X has brought unordered_map into the std namespace, so LOGOG_USE_TR1 doesn't need to be set.

A memory leak caused from setting group or category function of topic class.

Detected memory leaks!
Dumping objects ->
{2165} normal block at 0x0327D138, 20 bytes long.
 Data: <G r a p h i c s > 47 00 72 00 61 00 70 00 68 00 69 00 63 00 73 00 
{2063} normal block at 0x0327CF58, 20 bytes long.
 Data: <G r a p h i c s > 47 00 72 00 61 00 70 00 68 00 69 00 63 00 73 00 
{1967} normal block at 0x0327CD78, 20 bytes long.
 Data: <G r a p h i c s > 47 00 72 00 61 00 70 00 68 00 69 00 63 00 73 00 
{1877} normal block at 0x0328CAE8, 20 bytes long.
 Data: <G r a p h i c s > 47 00 72 00 61 00 70 00 68 00 69 00 63 00 73 00 
{1723} normal block at 0x0327DCB8, 20 bytes long.
 Data: <G r a p h i c s > 47 00 72 00 61 00 70 00 68 00 69 00 63 00 73 00 
Object dump complete.


I run the sample code and test around kinds of string assigning but fail finally.
My scenario to reproduce it is that
LOGOG_INITIALIZE() was put in BOOL CMyApp::InitInstance()
and LOGOG_SHUTDOWN() was placed in int CMyApp::ExitInstance().


        //GetDefaultFilter().Category(_LG("Unrecoverable"));//cause a memory leak 

        //LOGOG_CHAR cc[100] = _LG("Unrecoverable");
        //GetDefaultFilter().Category(cc);//cause a memory leak 
        
        LOGOG_CHAR gg[100];
        wcscpy(gg, _LG("Graphics"));
        GetDefaultFilter().Group(gg);//cause a memory leak 

#undef LOGOG_GROUP
#undef LOGOG_CATEGORY
#define LOGOG_GROUP  "Graphics"
#define LOGOG_CATEGORY "Unrecoverable"

        EMERGENCY(_LG("The graphics card has been destroyed"));

#undef LOGOG_CATEGORY
#define LOGOG_CATEGORY    "Recoverable"

        WARN(_LG("The graphics card has been replaced"));

#undef LOGOG_GROUP
#define LOGOG_GROUP "Audio"

        WARN(_LG("The headphones are unplugged"));

#undef LOGOG_CATEGORY
#undef LOGOG_GROUP
#define LOGOG_CATEGORY NULL
#define LOGOG_GROUP NULL

        INFO(_LG("Everything's back to... %s!"), _LG("normal"));

Mystyped fwrite in LogFile::Output

The fwrite operator should be:

result = fwrite( &(*data), 1, data.size(), m_pFile );

Instead of result = fwrite( &(*data), data.size(), 1, m_pFile );

in the int LogFile::Output( ) method, target.cpp.

Thanks.

How to get log by using logog inside dll api's in c++

In my program i am using two threadswith one main thread. i am initializing LOGOG_INITIALIZE(); logog::LogFile errFile("log.txt"); into my main thread and using INFO,ERR in main thread other two threads. My main thread is using c++ dll api's. I am perfectly getting log from main thread and two other running thread but my problem is i am not able to get log from dll api's flow. How to get log by using logog in dll api's. I would like to clear here if i am using INFO in dll api. it is crashing but if i do LOGOG_INITIALIZE(); inside dll api INFO execute but does not log any thing.

logog fails to compile under ubuntu 11.10

Checked out revision cbd047e via git

logog/include/object.hpp:105:13: error: ‘ptrdiff_t’ does not name a type

Need to #include cstddef in object.hpp

This was on Ubuntu 11.10 64 bit. The steps I used to build logog were:
cd logog
mkdir build
cd build
cmake ..
make

x64 platform not available in vs2017

Hello,

I am trying to build the project in vs2017 for x64 platform.
The documentation says it should be compatible, but the build platform x64 is not available on my machine, only "Win32"

Is there a way to build this in vs2017 for x64?

double dot is no good separator

The double dot used for field separation cannot be automatically parsed correctly by e.g. log viewers, because time information also contains double dots. A unique separator (like '|') would not cause this.

Color coding console output

I would like to color code the log output depending on security level using ansi escape codes: http://en.wikipedia.org/wiki/ANSI_escape_code#Colors

I understand this may not be something you want to include in logog, but I was wondering if you could me edit the source for my project.

I figured out how to add the color codes by editing the ErrorDescription and Format methods in the formatter.cpp but I could not find out how to prevent the codes from showing up in specific Targets, such as the LogFile Target.

Let me know if you have any suggestions, otherwise I think I can live with plain log messages.

Unable to link logog in any project with CodeBlocks and mingw32

I’m able o build logog with help of latest cmake + mingw32-make. I’ve set up Linker settings and I get no “library not found errors” but still when linking I get “undefined reference to” errors. I'm doing the same steps to build SFML that also uses pthread with no problems.

To reproduce:

  1. Make a new console application in Code::Blocks
  2. Copy logog-master to $ProjDir$/libs/logog
  3. Run cmake-gui (cmake-2.8.10.1-win32-x86)
  4. Set source code dir to $ProjDir$/libs/logog and build dir to $ProjDir$/libs/logog/Debug
  5. Press Configure
  6. Set CMAKE_BUILD_TYPE Debug
  7. Set CMAKE_CXX_FLAGS to –std=c++11
  8. Press Configure again
  9. Press Generate
  10. Run mingw32-make –f Makefile in $ProjDir$/libs/logog
    [same steps 3-10 for Release]
  11. In Code::Blocks set compiler to use -std=c++11 (global option)
  12. In project build options Search directories->Compiler ad $ProjDir$/logog/include
  13. In project build options Search directories->Linker ad $ProjDir$/logog/Debug and $ProjDir$/logog/Release respectively
  14. In linker settings link the logogd and logog libraries for Debug and Release respectively
  15. Use the most basic example of using logog in the main block and build
  16. Link error

Code::Blocks Log-file for a project I made (configured with the above steps):

-------------- Clean: Debug in OGLEngine (compiler: GNU GCC Compiler)---------------

Cleaned "OGLEngine - Debug"

-------------- Build: Debug in OGLEngine (compiler: GNU GCC Compiler)---------------

mingw32-g++.exe -std=c++11 -Wall -Winvalid-pch -g -v -std=c++11 -Wall -Ilibs\logog\include -Ilibs\boost -Ilibs\SFML\include -c D:\X_Tmp\OGLE\OGLEngine\src\platforms.h -o src\platforms.h.gch
mingw32-g++.exe -std=c++11 -Wall -Winvalid-pch -g -v -std=c++11 -Wall -Ilibs\logog\include -Ilibs\boost -Ilibs\SFML\include -c D:\X_Tmp\OGLE\OGLEngine\src\GameMain\gamemain.cpp -o obj\Debug\src\GameMain\gamemain.o
Using built-in specs.
COLLECT_GCC=mingw32-g++.exe
Target: mingw32
Configured with: ../gcc-4.7.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --disable-build-poststage1-with-cxx --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.7.2 (GCC)
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'src\platforms.h.gch' '-shared-libgcc' '-mtune=i386' '-march=i386'
d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/mingw32/4.7.2/cc1plus.exe -quiet -v -I libs\logog\include -I libs\boost -I libs\SFML\include -iprefix d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/ D:\X_Tmp\OGLE\OGLEngine\src\platforms.h -quiet -dumpbase platforms.h -mtune=i386 -march=i386 -auxbase-strip src\platforms.h.gch -g -Winvalid-pch -Wall -std=c++11 -std=c++11 -version -o C:\Users\rofarkas\AppData\Local\Temp\cc5DbTuz.s --output-pch= src\platforms.h.gch
GNU C++ (GCC) version 4.7.2 (mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/../../../../mingw32/include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++/mingw32"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++/backward"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include"
ignoring nonexistent directory "/mingw/include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include-fixed"
ignoring nonexistent directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/../../../../mingw32/include"
ignoring nonexistent directory "/mingw/include"

include "..." search starts here:

include <...> search starts here:

libs\logog\include
libs\boost
libs\SFML\include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++/mingw32
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++/backward
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/../../../../include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include-fixed
End of search list.
GNU C++ (GCC) version 4.7.2 (mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: fdc0bc7c97f61ac24bf8edb5646b3bc3
mingw32-g++.exe -std=c++11 -Wall -Winvalid-pch -g -v -std=c++11 -Wall -Ilibs\logog\include -Ilibs\boost -Ilibs\SFML\include -c D:\X_Tmp\OGLE\OGLEngine\src\GameMain\isettings.cpp -o obj\Debug\src\GameMain\isettings.o
mingw32-g++.exe -std=c++11 -Wall -Winvalid-pch -g -v -std=c++11 -Wall -Ilibs\logog\include -Ilibs\boost -Ilibs\SFML\include -c D:\X_Tmp\OGLE\OGLEngine\src\GameMain\settings.cpp -o obj\Debug\src\GameMain\settings.o
mingw32-g++.exe -std=c++11 -Wall -Winvalid-pch -g -v -std=c++11 -Wall -Ilibs\logog\include -Ilibs\boost -Ilibs\SFML\include -c D:\X_Tmp\OGLE\OGLEngine\src\main.cpp -o obj\Debug\src\main.o
Using built-in specs.
COLLECT_GCC=mingw32-g++.exe
Target: mingw32
Configured with: ../gcc-4.7.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --disable-build-poststage1-with-cxx --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.7.2 (GCC)
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'obj\Debug\src\GameMain\gamemain.o' '-shared-libgcc' '-mtune=i386' '-march=i386'
d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/mingw32/4.7.2/cc1plus.exe -quiet -v -I libs\logog\include -I libs\boost -I libs\SFML\include -iprefix d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/ D:\X_Tmp\OGLE\OGLEngine\src\GameMain\gamemain.cpp -quiet -dumpbase gamemain.cpp -mtune=i386 -march=i386 -auxbase-strip obj\Debug\src\GameMain\gamemain.o -g -Winvalid-pch -Wall -std=c++11 -std=c++11 -version -o C:\Users\rofarkas\AppData\Local\Temp\ccMQWFxI.s
Using built-in specs.
COLLECT_GCC=mingw32-g++.exe
Target: mingw32
Configured with: ../gcc-4.7.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --disable-build-poststage1-with-cxx --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.7.2 (GCC)
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'obj\Debug\src\GameMain\isettings.o' '-shared-libgcc' '-mtune=i386' '-march=i386'
d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/mingw32/4.7.2/cc1plus.exe -quiet -v -I libs\logog\include -I libs\boost -I libs\SFML\include -iprefix d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/ D:\X_Tmp\OGLE\OGLEngine\src\GameMain\isettings.cpp -quiet -dumpbase isettings.cpp -mtune=i386 -march=i386 -auxbase-strip obj\Debug\src\GameMain\isettings.o -g -Winvalid-pch -Wall -std=c++11 -std=c++11 -version -o C:\Users\rofarkas\AppData\Local\Temp\ccsAXFxI.s
GNU C++ (GCC) version 4.7.2 (mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/../../../../mingw32/include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++/mingw32"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++/backward"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include"
ignoring nonexistent directory "/mingw/include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include-fixed"
ignoring nonexistent directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/../../../../mingw32/include"
ignoring nonexistent directory "/mingw/include"

include "..." search starts here:

include <...> search starts here:

libs\logog\include
libs\boost
libs\SFML\include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++/mingw32
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++/backward
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/../../../../include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include-fixed
End of search list.
GNU C++ (GCC) version 4.7.2 (mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: fdc0bc7c97f61ac24bf8edb5646b3bc3
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'obj\Debug\src\GameMain\isettings.o' '-shared-libgcc' '-mtune=i386' '-march=i386'
d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/as.exe -v -I libs\logog\include -I libs\boost -I libs\SFML\include -o obj\Debug\src\GameMain\isettings.o C:\Users\rofarkas\AppData\Local\Temp\ccsAXFxI.s
GNU assembler version 2.22 (mingw32) using BFD version (GNU Binutils) 2.22
COMPILER_PATH=d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/mingw32/4.7.2/;d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/
LIBRARY_PATH=d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/lib/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'obj\Debug\src\GameMain\isettings.o' '-shared-libgcc' '-mtune=i386' '-march=i386'
mingw32-g++.exe -Llibs\logog\bin\Debug -Llibs\SFML\bin\Debug\lib -o bin\Debug\OGLEngine.exe obj\Debug\src\GameMain\gamemain.o obj\Debug\src\GameMain\isettings.o obj\Debug\src\GameMain\settings.o obj\Debug\src\main.o -lpthreadGC2 -lopengl32 -lglu32 -llogogd -lsfml-audio-d -lsfml-network-d -lsfml-graphics-d -lsfml-window-d -lsfml-system-d
GNU C++ (GCC) version 4.7.2 (mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/../../../../mingw32/include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++/mingw32"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++/backward"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include"
ignoring nonexistent directory "/mingw/include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include-fixed"
ignoring nonexistent directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/../../../../mingw32/include"
ignoring nonexistent directory "/mingw/include"

include "..." search starts here:

include <...> search starts here:

libs\logog\include
libs\boost
libs\SFML\include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++/mingw32
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++/backward
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/../../../../include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include-fixed
End of search list.
GNU C++ (GCC) version 4.7.2 (mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: fdc0bc7c97f61ac24bf8edb5646b3bc3
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'obj\Debug\src\GameMain\gamemain.o' '-shared-libgcc' '-mtune=i386' '-march=i386'
d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/as.exe -v -I libs\logog\include -I libs\boost -I libs\SFML\include -o obj\Debug\src\GameMain\gamemain.o C:\Users\rofarkas\AppData\Local\Temp\ccMQWFxI.s
GNU assembler version 2.22 (mingw32) using BFD version (GNU Binutils) 2.22
COMPILER_PATH=d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/mingw32/4.7.2/;d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/
LIBRARY_PATH=d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/lib/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'obj\Debug\src\GameMain\gamemain.o' '-shared-libgcc' '-mtune=i386' '-march=i386'
Using built-in specs.
COLLECT_GCC=mingw32-g++.exe
Target: mingw32
Configured with: ../gcc-4.7.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --disable-build-poststage1-with-cxx --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.7.2 (GCC)
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'obj\Debug\src\GameMain\settings.o' '-shared-libgcc' '-mtune=i386' '-march=i386'
d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/mingw32/4.7.2/cc1plus.exe -quiet -v -I libs\logog\include -I libs\boost -I libs\SFML\include -iprefix d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/ D:\X_Tmp\OGLE\OGLEngine\src\GameMain\settings.cpp -quiet -dumpbase settings.cpp -mtune=i386 -march=i386 -auxbase-strip obj\Debug\src\GameMain\settings.o -g -Winvalid-pch -Wall -std=c++11 -std=c++11 -version -o C:\Users\rofarkas\AppData\Local\Temp\ccIKCEkI.s
Using built-in specs.
COLLECT_GCC=mingw32-g++.exe
Target: mingw32
Configured with: ../gcc-4.7.2/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --disable-build-poststage1-with-cxx --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.7.2 (GCC)
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'obj\Debug\src\main.o' '-shared-libgcc' '-mtune=i386' '-march=i386'
d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/mingw32/4.7.2/cc1plus.exe -quiet -v -I libs\logog\include -I libs\boost -I libs\SFML\include -iprefix d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/ D:\X_Tmp\OGLE\OGLEngine\src\main.cpp -quiet -dumpbase main.cpp -mtune=i386 -march=i386 -auxbase-strip obj\Debug\src\main.o -g -Winvalid-pch -Wall -std=c++11 -std=c++11 -version -o C:\Users\rofarkas\AppData\Local\Temp\ccqtPmfI.s
GNU C++ (GCC) version 4.7.2 (mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/../../../../mingw32/include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++/mingw32"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++/backward"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include"
ignoring nonexistent directory "/mingw/include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include-fixed"
ignoring nonexistent directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/../../../../mingw32/include"
ignoring nonexistent directory "/mingw/include"

include "..." search starts here:

include <...> search starts here:

libs\logog\include
libs\boost
libs\SFML\include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++/mingw32
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++/backward
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/../../../../include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include-fixed
End of search list.
GNU C++ (GCC) version 4.7.2 (mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: fdc0bc7c97f61ac24bf8edb5646b3bc3
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'obj\Debug\src\main.o' '-shared-libgcc' '-mtune=i386' '-march=i386'
d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/as.exe -v -I libs\logog\include -I libs\boost -I libs\SFML\include -o obj\Debug\src\main.o C:\Users\rofarkas\AppData\Local\Temp\ccqtPmfI.s
GNU assembler version 2.22 (mingw32) using BFD version (GNU Binutils) 2.22
COMPILER_PATH=d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/mingw32/4.7.2/;d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/
LIBRARY_PATH=d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/lib/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'obj\Debug\src\main.o' '-shared-libgcc' '-mtune=i386' '-march=i386'
GNU C++ (GCC) version 4.7.2 (mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/../../../../mingw32/include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++/mingw32"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include/c++/backward"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include"
ignoring nonexistent directory "/mingw/include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../include"
ignoring duplicate directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/include-fixed"
ignoring nonexistent directory "d:/programfiles/portable/cb_win32/mingw/lib/gcc/../../lib/gcc/mingw32/4.7.2/../../../../mingw32/include"
ignoring nonexistent directory "/mingw/include"

include "..." search starts here:

include <...> search starts here:

libs\logog\include
libs\boost
libs\SFML\include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++/mingw32
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include/c++/backward
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/../../../../include
d:\programfiles\portable\cb_win32\mingw\bin../lib/gcc/mingw32/4.7.2/include-fixed
End of search list.
GNU C++ (GCC) version 4.7.2 (mingw32)
compiled by GNU C version 4.7.2, GMP version 5.0.1, MPFR version 2.4.1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: fdc0bc7c97f61ac24bf8edb5646b3bc3
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'obj\Debug\src\GameMain\settings.o' '-shared-libgcc' '-mtune=i386' '-march=i386'
d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/as.exe -v -I libs\logog\include -I libs\boost -I libs\SFML\include -o obj\Debug\src\GameMain\settings.o C:\Users\rofarkas\AppData\Local\Temp\ccIKCEkI.s
GNU assembler version 2.22 (mingw32) using BFD version (GNU Binutils) 2.22
COMPILER_PATH=d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/mingw32/4.7.2/;d:/programfiles/portable/cb_win32/mingw/bin/../libexec/gcc/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/bin/
LIBRARY_PATH=d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../../mingw32/lib/;d:/programfiles/portable/cb_win32/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../
COLLECT_GCC_OPTIONS='-std=c++11' '-Winvalid-pch' '-g' '-v' '-std=c++11' '-Wall' '-I' 'libs\logog\include' '-I' 'libs\boost' '-I' 'libs\SFML\include' '-c' '-o' 'obj\Debug\src\GameMain\settings.o' '-shared-libgcc' '-mtune=i386' '-march=i386'
libs\logog\bin\Debug/liblogogd.a(mutex.cpp.obj): In function ZN5logog5MutexC2Ev': D:/X_Tmp/OGLE/OGLEngine/libs/logog/src/mutex.cpp:12: undefined reference to_imp__pthread_mutex_init'
libs\logog\bin\Debug/liblogogd.a(mutex.cpp.obj): In function ZN5logog5MutexC2ERKS0_': D:/X_Tmp/OGLE/OGLEngine/libs/logog/src/mutex.cpp:17: undefined reference to _imp__pthread_mutex_init'
libs\logog\bin\Debug/liblogogd.a(mutex.cpp.obj): In functionZN5logog5MutexaSERKS0_': D:/X_Tmp/OGLE/OGLEngine/libs/logog/src/mutex.cpp:22: undefined reference to _imp__pthread_mutex_init'
libs\logog\bin\Debug/liblogogd.a(mutex.cpp.obj): In functionZN5logog5MutexD2Ev': D:/X_Tmp/OGLE/OGLEngine/libs/logog/src/mutex.cpp:28: undefined reference to _imp__pthread_mutex_destroy'
libs\logog\bin\Debug/liblogogd.a(mutex.cpp.obj): In functionZN5logog5Mutex9MutexLockEv': D:/X_Tmp/OGLE/OGLEngine/libs/logog/src/mutex.cpp:33: undefined reference to _imp__pthread_mutex_lock'
libs\logog\bin\Debug/liblogogd.a(mutex.cpp.obj): In functionZN5logog5Mutex11MutexUnlockEv': D:/X_Tmp/OGLE/OGLEngine/libs/logog/src/mutex.cpp:38: undefined reference to _imp__pthread_mutex_unlock'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 7 seconds)
6 errors, 0 warnings (0 minutes, 7 seconds)

Level descriptions should keep matched in Formatter::ErrorDescription().

  const LOGOG_CHAR * Formatter::ErrorDescription( const LOGOG_LEVEL_TYPE level )
  {
    if ( level <= LOGOG_LEVEL_NONE )
      return LOGOG_CONST_STRING("none");

    if ( level <= LOGOG_LEVEL_EMERGENCY )
      return LOGOG_CONST_STRING("emergency");

    if ( level <= LOGOG_LEVEL_ALERT )
      return LOGOG_CONST_STRING("alert");

    if ( level <= LOGOG_LEVEL_CRITICAL )
      return LOGOG_CONST_STRING("critical");

    if ( level <= LOGOG_LEVEL_ERROR )
      return LOGOG_CONST_STRING("error");

    if ( level <= LOGOG_LEVEL_WARN )
      return LOGOG_CONST_STRING("warning");

+   if ( level <= LOGOG_LEVEL_WARN1 )
+     return LOGOG_CONST_STRING("warning1");

+   if ( level <= LOGOG_LEVEL_WARN2 )
+     return LOGOG_CONST_STRING("warning2");

+   if ( level <= LOGOG_LEVEL_WARN3 )
+     return LOGOG_CONST_STRING("warning3");

    if ( level <= LOGOG_LEVEL_INFO )
      return LOGOG_CONST_STRING("info");

    if ( level <= LOGOG_LEVEL_DEBUG )
      return LOGOG_CONST_STRING("debug");

    return LOGOG_CONST_STRING("unknown");
  }

Move the generated documentation out of the source tree

I propose to delete _doc/html_ at least from the master branch. It should be enough to have this in the _gh-pages_ branch.

I propose this because I like to integrate logog into my own software as a git-subtree-subdirectory. The generated html documentation would increase the size of my repo significantly.

Warning causes build error when building for x64.

When building on Visual Studio 2010 for x64 size_t is defined as unsigned __int64.

This causes the following warning in LogFile::InternalOutput() due to the plcing of thefwrite() return value in an int:

target.cpp(192): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data

This warning causes the build error:
error C2220: warning treated as error - no 'object' file generated

thanks,

Add install target to CMAKE-File in order to integrate library more easily

Hi,

in order to make the library more easily usable, i would prefer to habe a buildable install target in makefiles.

Could you please add the following to the main CMAKE-File:

SET_TARGET_PROPERTIES(logog PROPERTIES DEBUG_POSTFIX "d")


install(TARGETS logog ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
install(DIRECTORY include/ DESTINATION "${CMAKE_INSTALL_PREFIX}/include/logog"
          FILES_MATCHING PATTERN "*.hpp")

This builds an include (with subfolder logog) and lib folder in the target install directory. Additionally a "d" is added to the name of the debug library in order to work with release and debug in parallel.

I inserted this at line 43 of the main CMakeLists.txt.

Kind regards,
Jan

A test failed on my own filter with a level (different to DefaultFilter).

As http://johnwbyrd.github.com/logog/filters.html descripted,

"You can get a reference to the default filter with GetDefaultFilter(). You can also instantiate your own filters before you start logging messages and messages will automatically find and route through them as well."

But I failed on my own filter with a level (different to DefaultFilter).  

My purpose is to make 2 targets work with individual levels. I have no idea to implement it.

Logog does not work with LOGOG_UNICODE

If I define LOGOG_UNICODE, logog would not compile with various compile-time errors.

for example:

.\formatter.cpp(28) : error C2440: 'return' : cannot convert from 'const char [9]' to 'const LOGOG_CHAR *'

Logog crashes when called from different files

I need to log into a FileSystem on File so that i subclassed the Target class and also hooked up MFC support to the logog.vcproj. Now I have the following problem:

In the constructor of CMainFrame i initialize Logog - LOGOG_INITIALIZE() and shut it down in the destructor of the same class LOGOG_SHUTDOWN().

Even if I am not using my classes, the logog crashes.

in the CMainFrame::Login()
{
logog::LogFile myRepLog("C:\Temp\MyLogFile.log");
WARN(" Blah ");
WARN(" Blah ");
WARN(" Blah ");
WARN(" Blah ");
INFO("Blah");
EMERGENCY("Blah");
}

From the main menu I call a dialog that controls a pump. in OnInitDialog() i added

CPumpManualControl::OnInitDialog()
{
CDialog::OnInitDialog();
WARN("Blah");
}

The logog crashes when trying to log the WARN information when calls pCurrentNode->->IsTopic(). It looks like pCurrentNode is not initialized.

    while ( it != m_Subscribers.end() )
    {
        pCurrentNode = *it;

        if ( pCurrentNode->IsTopic() == false )
            continue;

here is call stack:

MVSS.exe!logog::Topic::Send(const logog::Topic & node={...}) Line 96 + 0xa bytes C++
MVSS.exe!logog::Topic::Receive(const logog::Topic & node={...}) Line 123 + 0x13 bytes C++
MVSS.exe!logog::Topic::Send(const logog::Topic & node={...}) Line 104 + 0x13 bytes C++
MVSS.exe!logog::Checkpoint::Send(const logog::Topic & node={...}) Line 28 C++
MVSS.exe!logog::Topic::Transmit() Line 117 + 0x13 bytes C++
[Managed to Native Transition]
MVSS.exe!CPumpManualCtrl::OnInitDialog() Line 98 + 0x12e bytes C++
[Native to Managed Transition]

Could you have a look and give me an idea what could be wrong?

Thanks.

Getting 'logog::Object::operator new' error

My project is document - multiple view type. If I am using Loglog in the CMainFrame class, I am getting compilation error:

4>.\MainFrm.cpp(410) : error C2660: 'logog::Object::operator new' : function does not take 3 arguments

when I am adding any logging macro such as WARN() or INFO.

If I initialize LOGOG_INITIALIZE in the MainFrame construnctor and do LOGOG_SHUTDOWN in the distrunctor , and then
use macros in other classes, say, CBatch class

logog::LogFile myLogFile(" blah blah")

WARN("Testing")

compiles just fine, no errors or warnings.

Could not reproduce this problem in a small standalone application.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.