@@ -35,7 +35,8 @@ Licensed under the MIT License <http://opensource.org/licenses/MIT>.
35
35
#define LOG_LEVEL_ERROR 2
36
36
#define LOG_LEVEL_WARNING 3
37
37
#define LOG_LEVEL_NOTICE 4
38
- #define LOG_LEVEL_VERBOSE 5
38
+ #define LOG_LEVEL_TRACE 5
39
+ #define LOG_LEVEL_VERBOSE 6
39
40
40
41
#define CR " \n "
41
42
#define LOGGING_VERSION 1_0_0
@@ -72,7 +73,8 @@ Licensed under the MIT License <http://opensource.org/licenses/MIT>.
72
73
* 2 - LOG_LEVEL_ERROR all errors
73
74
* 3 - LOG_LEVEL_WARNING errors, and warnings
74
75
* 4 - LOG_LEVEL_NOTICE errors, warnings and notices
75
- * 5 - LOG_LEVEL_VERBOSE all
76
+ * 5 - LOG_LEVEL_TRACE errors, warnings, notices, traces
77
+ * 6 - LOG_LEVEL_VERBOSE all
76
78
*/
77
79
78
80
class Logging {
@@ -180,6 +182,26 @@ class Logging {
180
182
}
181
183
#endif
182
184
}
185
+ /* *
186
+ * Output a trace message. Output message contains
187
+ * Debug messages are printed out at l
188
+ * loglevels >= LOG_LEVEL_VERBOSE
189
+ *
190
+ * \param msg format string to output
191
+ * \param ... any number of variables
192
+ * \return void
193
+ */
194
+ template <class T > void trace (T msg, ...){
195
+ #ifndef DISABLE_LOGGING
196
+ if (LOG_LEVEL_TRACE <= _level) {
197
+ if (_showLevel) _logOutput->print (" T: " );
198
+ va_list args;
199
+ va_start (args, msg);
200
+ print (msg,args);
201
+ }
202
+ #endif
203
+ }
204
+
183
205
/* *
184
206
* Output an verbose message. Output message contains
185
207
* Debug messages are printed out at l
0 commit comments