summaryrefslogtreecommitdiff
path: root/include/GFSDK_Logger.h
blob: 5ad6d77d0815b9de3677efc86f185deda9e3f691 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

namespace nv
{
	enum struct LogSeverity
	{
		kInfo = 0, // Message contains information about normal and expected behavior
		kWarning = 1, // Message contains information about a potentially problematic situation
		kError = 2, // Message contains information about a problem
		kFatal = 3 // Message contains information about a fatal problem; program should be aborted
	};

	static const char * LogSeverityStrings[] = { "INFO", "WARNING", "ERROR", "FATAL" };


	// Note: Implementation of this interface must be thread-safe
	class ILogger
	{
	public:
		// �filename� is NULL and �linenumber� is 0 in release builds of GameWorks	
//		virtual void log(LogSeverity severity, const char* filename, int linenumber, const char* text, ...) = 0;
		virtual void log(LogSeverity severity, const wchar_t* filename, int linenumber, const wchar_t* text, ...) = 0;
	};
}