From 9d4bad02e6eb15ec5cf62681923543776d66e9f1 Mon Sep 17 00:00:00 2001 From: Jason Maskell Date: Tue, 31 May 2016 13:54:29 +0200 Subject: Renamed Logger.h to GFSDK_Logger.h since it's a shared header. Removed the narrow char methods. Removed the floating log functions. Changed the ILogger::log() method to use varargs and printf() formatting. --- common/Logger.h | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 common/Logger.h (limited to 'common/Logger.h') diff --git a/common/Logger.h b/common/Logger.h deleted file mode 100644 index 324b71e..0000000 --- a/common/Logger.h +++ /dev/null @@ -1,25 +0,0 @@ -#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(const char* text, LogSeverity severity, const char* filename, int linenumber) = 0; - virtual void log(const wchar_t* text, LogSeverity severity, const wchar_t* filename, int linenumber) = 0; - }; -} - -- cgit v1.2.3