30 #ifndef __CLAW_LOGGER_HPP__ 31 #define __CLAW_LOGGER_HPP__ 41 #ifndef CLAW_LOGGER_EXPORT 42 #ifdef CLAW_LOGGER_NO_EXPORT 43 #define CLAW_LOGGER_EXPORT 46 #ifdef claw_logger_EXPORTS 47 #define CLAW_LOGGER_EXPORT __declspec(dllexport) 49 #define CLAW_LOGGER_EXPORT __declspec(dllimport) 50 #endif // def claw_logger_EXPORTS 52 #define CLAW_LOGGER_EXPORT 54 #endif // def CLAW_LOGGER_NO_EXPORT 55 #endif // ndef CLAW_LOGGER_EXPORT 76 typedef std::list<stream_type*> stream_list_type;
81 CLAW_LOGGER_EXPORT
void clear();
84 CLAW_LOGGER_EXPORT
void remove(
const stream_type* s);
86 CLAW_LOGGER_EXPORT
void set_level(
int lvl);
89 CLAW_LOGGER_EXPORT
void flush();
98 void print(
const std::string& s);
113 stream_list_type m_stream;
129 #include <claw/logger/logger.tpp> 131 #endif // __CLAW_LOGGER_HPP__ CLAW_LOGGER_EXPORT void set_level(int lvl)
Change the level of log.
CLAW_LOGGER_EXPORT log_system & lendl(log_system &log)
Add a new line caracter to a logger and flush it.
CLAW_LOGGER_EXPORT log_system logger
The default log system provided by claw.
Some basic classes for logging.
CLAW_LOGGER_EXPORT void clear()
Delete the streams.
Set the level of the next message for logger_system::operator<<().
CLAW_LOGGER_EXPORT void merge(stream_type *s)
Add an other output stream.
A class implementing a logging system.
A class to pass log information to the loggers.
Base class for streams accepting log output.
CLAW_LOGGER_EXPORT log_system()
Default constructor.
This is the main namespace.
CLAW_LOGGER_EXPORT void flush()
Flush all log streams.
CLAW_LOGGER_EXPORT ~log_system()
Destructor.