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)
51# define CLAW_LOGGER_EXPORT
75 typedef std::list<stream_type*> stream_list_type;
80 CLAW_LOGGER_EXPORT
void clear();
85 CLAW_LOGGER_EXPORT
void set_level(
int lvl );
88 CLAW_LOGGER_EXPORT
void flush();
105 stream_list_type m_stream;
121#include <claw/impl/logger.tpp>
Set the level of the next message for logger_system::operator<<().
Base class for streams accepting log output.
A class implementing a logging system.
CLAW_LOGGER_EXPORT void remove(const stream_type *s)
Remove a stream.
CLAW_LOGGER_EXPORT void clear()
Delete the streams.
CLAW_LOGGER_EXPORT ~log_system()
Destructor.
CLAW_LOGGER_EXPORT void set_level(int lvl)
Change the level of log.
CLAW_LOGGER_EXPORT void set(stream_type *s)
Set the output stream.
CLAW_LOGGER_EXPORT void flush()
Flush all log streams.
CLAW_LOGGER_EXPORT void merge(stream_type *s)
Add an other output stream.
CLAW_LOGGER_EXPORT log_system()
Default constructor.
A class to pass log information to the loggers.
Some basic classes for logging.
This is the main namespace.
CLAW_LOGGER_EXPORT log_system & lendl(log_system &log)
Add a new line caracter to a logger and flush it.
log_system logger
The default log system provided by claw.