Esempio n. 1
0
//----------------------------------------------------------------------------
int LogAddFileHandler (const char *filename, int line, unsigned int levels)
{
	PX2_UNUSED(line);

	FileLogHandler *handler = new0 FileLogHandler(levels, filename);

	return LogAddHandler(handler);
}
Esempio n. 2
0
//----------------------------------------------------------------------------
int LoadAddOutputWindowHandler (int line, unsigned int levels)
{
	PX2_UNUSED(line);

	OutputWindowHandler *handler = new0 OutputWindowHandler(levels);

	return LogAddHandler(handler);
}
Esempio n. 3
0
Log::Log()
{
	Allocator* alloc = AllocatorGetThis();


	LogAddHandler(this, LogConsoleHandler);

	if( !gs_Log ) LogSetDefault(this);
}
Esempio n. 4
0
Log::Log()
	: timer(nullptr)
	, mutex(nullptr)
{
	Allocator* alloc = AllocatorGetThis();

	timer = TimerCreate(alloc);
	mutex = MutexCreate(alloc);

	LogAddHandler(this, LogConsoleHandler);

	if( !gs_Log ) LogSetDefault(this);
}