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)
46# define CLAW_LOGGER_EXPORT
61 log_level(
int lvl,
const std::string& s );
63 std::string get_string()
const;
70 const std::string m_prefix;
Set the level of the next message for logger_system::operator<<().
This is the main namespace.
log_level log_verbose(15)
Use this level if you want to inform the user about a situation that is not problematic.
log_level log_warning(1, "warning: ")
Use this level if a small problem occurs and you can deal with it without crashing the application.
log_level log_error(0, "error: ")
Use this level if something goes really bad and your application may crash.