22 #ifndef PARSER_LOGGER_HPP 23 #define PARSER_LOGGER_HPP 26 #include <boost/enable_shared_from_this.hpp> 32 :
public boost::enable_shared_from_this<ParserLogger>
67 void warn(
const string& str);
68 void error(
const string& str);
string logvalue() const
Returns the log value.
~LogStream()
Destroyes the log stream.
LogStream(const shared_ptr< ParserLogger > &logger, Category cat)
This file is part of alaCarte.
LogStream & operator<<(const T &v)
LogStream warnStream()
Returns a warn stream.
LogStream errorStream()
Returns a error stream.
void logToStream(Category cat, const string &str)
prints a message to the log
std::ofstream outputStream
void warn(const string &str)
outputs an warn message
ParserLogger(const string &parsedFile)
Creates a new parse logger.
shared_ptr< ParserLogger > logger
void error(const string &str)
outputs an error message