summaryrefslogtreecommitdiffstats
path: root/src/common/logger.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-08-12 19:28:22 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-08-12 19:28:22 +0200
commit45a5e1e865ec02892054080e1fc0b7e7c463e9d3 (patch)
tree7cbeeb13b077c677f170595e53fab48e8699cae7 /src/common/logger.h
parentb4b74c30e9aa93ae736db73df5cb0c5d508ec6ed (diff)
downloadcolobot-45a5e1e865ec02892054080e1fc0b7e7c463e9d3.tar.gz
colobot-45a5e1e865ec02892054080e1fc0b7e7c463e9d3.tar.bz2
colobot-45a5e1e865ec02892054080e1fc0b7e7c463e9d3.zip
Object handling in CEngine
- finished rewriting CEngine object, shadow, etc. handling - refactored texture code - added new log levels
Diffstat (limited to 'src/common/logger.h')
-rw-r--r--src/common/logger.h22
1 files changed, 18 insertions, 4 deletions
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<CLogger>
*/
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