28 #ifndef _LOG4TANGO_LOGGER_H
29 #define _LOG4TANGO_LOGGER_H
40 #ifndef LOG4TANGO_LOGGERS_USE_LOGSTREAM
46 #ifdef LOG4TANGO_LOGGERS_USE_LOGSTREAM
65 Logger(
const std::string& name,
102 return _level >= level;
112 const char* string_format, ...);
121 if (is_level_enabled(level)) {
122 log_unconditionally(level, message);
133 const char* string_format, ...);
141 const std::string& message);
148 void debug (
const char* string_format, ...);
154 inline void debug (
const std::string& message) {
168 #ifndef LOG4TANGO_LOGGERS_USE_LOGSTREAM
182 return *_log_streams[_DEBUG_STREAM_ID];
191 void info (
const char* string_format, ...);
197 inline void info (
const std::string& message) {
211 #ifndef LOG4TANGO_LOGGERS_USE_LOGSTREAM
225 return *_log_streams[_INFO_STREAM_ID];
234 void warn (
const char* string_format, ...);
240 inline void warn (
const std::string& message) {
254 #ifndef LOG4TANGO_LOGGERS_USE_LOGSTREAM
268 return *_log_streams[_WARN_STREAM_ID];
277 void error (
const char* string_format, ...);
283 inline void error (
const std::string& message) {
297 #ifndef LOG4TANGO_LOGGERS_USE_LOGSTREAM
311 return *_log_streams[_ERROR_STREAM_ID];
320 void fatal(
const char* string_format, ...);
326 inline void fatal (
const std::string& message) {
340 #ifndef LOG4TANGO_LOGGERS_USE_LOGSTREAM
354 return *_log_streams[_FATAL_STREAM_ID];
358 #ifndef LOG4TANGO_LOGGERS_USE_LOGSTREAM
382 #ifdef LOG4TANGO_LOGGERS_USE_LOGSTREAM
385 _FATAL_STREAM_ID = 0,
386 _ERROR_STREAM_ID = 1,
394 const std::string _name;
399 #ifdef LOG4TANGO_LOGGERS_USE_LOGSTREAM
401 LogStream *_log_streams[5];
411 #endif // _LOG4TANGO_LOGGER_H