summaryrefslogtreecommitdiffstats
path: root/include/astra/Logging.h
diff options
context:
space:
mode:
authorDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-03-13 12:18:21 +0100
committerDaniel M. Pelt <D.M.Pelt@cwi.nl>2015-03-13 12:18:21 +0100
commitc5507b6ef2abfab169150528a374526bb348bf62 (patch)
tree2e218781b8c90209f7ac53219cc59d3319fe3a73 /include/astra/Logging.h
parent150951875c236f95a64fd132c26576bd19daca80 (diff)
downloadastra-c5507b6ef2abfab169150528a374526bb348bf62.tar.gz
astra-c5507b6ef2abfab169150528a374526bb348bf62.tar.bz2
astra-c5507b6ef2abfab169150528a374526bb348bf62.tar.xz
astra-c5507b6ef2abfab169150528a374526bb348bf62.zip
Adds ASTRA_*** defines for easier logging, and changes internal calls to these defines
Diffstat (limited to 'include/astra/Logging.h')
-rw-r--r--include/astra/Logging.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/astra/Logging.h b/include/astra/Logging.h
index ce777ae..5695663 100644
--- a/include/astra/Logging.h
+++ b/include/astra/Logging.h
@@ -29,7 +29,10 @@ $Id$
#ifndef _INC_ASTRA_LOGGING
#define _INC_ASTRA_LOGGING
-#define ASTRA_LOG(id) __FILE__, __LINE__, id
+#define ASTRA_DEBUG(...) astra::CLogger::debug(__FILE__,__LINE__, __VA_ARGS__)
+#define ASTRA_INFO(...) astra::CLogger::info(__FILE__,__LINE__, __VA_ARGS__)
+#define ASTRA_WARN(...) astra::CLogger::warn(__FILE__,__LINE__, __VA_ARGS__)
+#define ASTRA_ERROR(...) astra::CLogger::error(__FILE__,__LINE__, __VA_ARGS__)
namespace astra
{