Subversion Repositories HomeAutomation

Rev

Rev 1964 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1964 Rev 1990
Line 35... Line 35...
35
  LOG_LEVEL_ERROR     = 0x000001,
35
  LOG_LEVEL_ERROR     = 0x000001,
36
  LOG_LEVEL_EXCEPTION = 0x000002,
36
  LOG_LEVEL_EXCEPTION = 0x000002,
37
  LOG_LEVEL_WARNING   = 0x000004,
37
  LOG_LEVEL_WARNING   = 0x000004,
38
  LOG_LEVEL_INFO      = 0x000008,
38
  LOG_LEVEL_INFO      = 0x000008,
39
  LOG_LEVEL_DEBUG     = 0x000010,
39
  LOG_LEVEL_DEBUG     = 0x000010,
-
 
40
  LOG_LEVEL_EXTREME   = 0x000040,
40
  LOG_LEVEL_ALL       = 0xFFFFFF
41
  LOG_LEVEL_ALL       = 0xFFFFFF
41
} Level;
42
} Level;
42
 
43
 
43
void SetLevel(Level level);
44
void SetLevel(Level level);
44
void SetLevelByString( std::string level_string );
45
void SetLevelByString( std::string level_string );
Line 49... Line 50...
49
void Info(std::string module, char* format, ...);
50
void Info(std::string module, char* format, ...);
50
void Info(std::string module, std::string message);
51
void Info(std::string module, std::string message);
51
 
52
 
52
void Debug(std::string module, char* format, ...);
53
void Debug(std::string module, char* format, ...);
53
void Debug(std::string module, std::string message);
54
void Debug(std::string module, std::string message);
-
 
55
 
-
 
56
void Extreme(std::string module, char* format, ...);
-
 
57
void Extreme(std::string module, std::string message);
54
 
58
 
55
void Error(std::string module, char* format, ...);
59
void Error(std::string module, char* format, ...);
56
void Error(std::string module, std::string message);
60
void Error(std::string module, std::string message);
57
 
61
 
58
void Warning(std::string module, char* format, ...);
62
void Warning(std::string module, char* format, ...);
59
void Warning(std::string module, std::string message);
63
void Warning(std::string module, std::string message);
60
 
64
 
61
void Exception(std::string module, std::exception& exception);
65
void Exception(std::string module, std::exception& exception);
62
 
66
 
63
#define LOG_DEBUG_ENTER log::Debug(log_module_, "%s entered!", __FUNCTION__);
67
#define LOG_DEBUG_ENTER log::Extreme(log_module_, "%s entered!", __FUNCTION__);
64
#define LOG_DEBUG_EXIT  log::Debug(log_module_, "%s exited!", __FUNCTION__);
68
#define LOG_DEBUG_EXIT  log::Extreme(log_module_, "%s exited!", __FUNCTION__);
65
 
69
 
66
#define LOG_DEBUG_ROW  log::Debug(log_module_, "%s at line %d!", __FUNCTION__, __LINE__);
70
#define LOG_DEBUG_ROW  log::Debug(log_module_, "%s at line %d!", __FUNCTION__, __LINE__);
67
 
71
 
68
}; // namespace log
72
}; // namespace log
69
}; // namespace atom
73
}; // namespace atom