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)
52#define CLAW_LOGGER_EXPORT
76 typedef std::list<stream_type*> stream_list_type;
81 CLAW_LOGGER_EXPORT
void clear();
83 CLAW_LOGGER_EXPORT
void merge(stream_type* s);
84 CLAW_LOGGER_EXPORT
void remove(
const stream_type* s);
85 CLAW_LOGGER_EXPORT
void set(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>
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.
CLAW_LOGGER_EXPORT log_system logger
The default log system provided by claw.