johnwbyrd/logog — Issue #3: Getting 'logog::Object::operator new' error
Author: Cassilio
Created: 2011-10-26 16:59:45+00:00
State: open

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.