//---------------------------------------------------------------------------- int LogAddFileHandler (const char *filename, int line, unsigned int levels) { PX2_UNUSED(line); FileLogHandler *handler = new0 FileLogHandler(levels, filename); return LogAddHandler(handler); }
//---------------------------------------------------------------------------- int LoadAddOutputWindowHandler (int line, unsigned int levels) { PX2_UNUSED(line); OutputWindowHandler *handler = new0 OutputWindowHandler(levels); return LogAddHandler(handler); }
Log::Log() { Allocator* alloc = AllocatorGetThis(); LogAddHandler(this, LogConsoleHandler); if( !gs_Log ) LogSetDefault(this); }
Log::Log() : timer(nullptr) , mutex(nullptr) { Allocator* alloc = AllocatorGetThis(); timer = TimerCreate(alloc); mutex = MutexCreate(alloc); LogAddHandler(this, LogConsoleHandler); if( !gs_Log ) LogSetDefault(this); }