30 #ifndef __CLAW_LOG_LEVEL_HPP__
31 #define __CLAW_LOG_LEVEL_HPP__
35 #ifndef CLAW_LOGGER_EXPORT
36 # ifdef CLAW_LOGGER_NO_EXPORT
37 # define CLAW_LOGGER_EXPORT
40 # ifdef claw_logger_EXPORTS
41 # define CLAW_LOGGER_EXPORT __declspec(dllexport)
43 # define CLAW_LOGGER_EXPORT __declspec(dllimport)
44 # endif // def claw_logger_EXPORTS
46 # define CLAW_LOGGER_EXPORT
48 # endif // def CLAW_LOGGER_NO_EXPORT
49 #endif // ndef CLAW_LOGGER_EXPORT
61 log_level(
int lvl,
const std::string& s );
63 std::string get_string()
const;
70 const std::string m_prefix;
94 #endif // __CLAW_LOG_LEVEL_HPP__
log_level log_error(0,"error: ")
Use this level if something goes really bad and your application may crash.
log_level log_verbose(15)
Use this level if you want to inform the user about a situation that is not problematic.
Set the level of the next message for logger_system::operator<<().
log_level log_warning(1,"warning: ")
Use this level if a small problem occurs and you can deal with it without crashing the application...
This is the main namespace.