From 45a5e1e865ec02892054080e1fc0b7e7c463e9d3 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Sun, 12 Aug 2012 19:28:22 +0200 Subject: Object handling in CEngine - finished rewriting CEngine object, shadow, etc. handling - refactored texture code - added new log levels --- src/common/logger.h | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'src/common/logger.h') diff --git a/src/common/logger.h b/src/common/logger.h index 5de3d63..c7953d7 100644 --- a/src/common/logger.h +++ b/src/common/logger.h @@ -37,10 +37,12 @@ **/ enum LogType { - LOG_INFO = 1, /*!< lowest level, information */ - LOG_WARN = 2, /*!< warning */ - LOG_ERROR = 3, /*!< error */ - LOG_NONE = 4 /*!< none level, used for custom messages */ + LOG_TRACE = 1, /*!< lowest level, execution tracing */ + LOG_DEBUG = 2, /*!< debugging messages */ + LOG_INFO = 3, /*!< information */ + LOG_WARN = 4, /*!< warning */ + LOG_ERROR = 5, /*!< error */ + LOG_NONE = 6 /*!< none level, used for custom messages */ }; @@ -62,6 +64,18 @@ class CLogger : public CSingleton */ void Message(const char *str, ...); + /** Write message to console or file with LOG_TRACE level + * @param str - message to write + * @param ... - additional arguments + */ + void Trace(const char *str, ...); + + /** Write message to console or file with LOG_DEBUG level + * @param str - message to write + * @param ... - additional arguments + */ + void Debug(const char *str, ...); + /** Write message to console or file with LOG_INFO level * @param str - message to write * @param ... - additional arguments -- cgit v1.2.3-1-g7c22