30 #ifndef __CLAW_LOGGER_HPP__ 31 #define __CLAW_LOGGER_HPP__ 40 #ifndef CLAW_LOGGER_EXPORT 41 # ifdef CLAW_LOGGER_NO_EXPORT 42 # define CLAW_LOGGER_EXPORT 45 # ifdef claw_logger_EXPORTS 46 # define CLAW_LOGGER_EXPORT __declspec(dllexport) 48 # define CLAW_LOGGER_EXPORT __declspec(dllimport) 49 # endif // def claw_logger_EXPORTS 51 # define CLAW_LOGGER_EXPORT 53 # endif // def CLAW_LOGGER_NO_EXPORT 54 #endif // ndef CLAW_LOGGER_EXPORT 75 typedef std::list<stream_type*> stream_list_type;
80 CLAW_LOGGER_EXPORT
void clear();
82 CLAW_LOGGER_EXPORT
void merge( stream_type* s );
83 CLAW_LOGGER_EXPORT
void remove(
const stream_type* s );
84 CLAW_LOGGER_EXPORT
void set( stream_type* s );
85 CLAW_LOGGER_EXPORT
void set_level(
int lvl );
88 CLAW_LOGGER_EXPORT
void flush();
91 log_system& operator<<(
const T& that );
93 CLAW_LOGGER_EXPORT log_system& operator<<(
const log_level& that );
94 CLAW_LOGGER_EXPORT log_system& operator<<( log_system& (*pf)(log_system&) );
105 stream_list_type m_stream;
121 #include <claw/impl/logger.tpp> 123 #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.
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.
log_system logger
The default log system provided by claw.
This is the main namespace.
CLAW_LOGGER_EXPORT void flush()
Flush all log streams.
CLAW_LOGGER_EXPORT ~log_system()
Destructor.